Compare commits

..

2 Commits

Author SHA1 Message Date
gemdude46 736527bfd8 Merge branch 'master' of git.touhou.dev:StellatedCUBE/ShintenScript 2023-01-27 13:26:51 +00:00
gemdude46 3e57d9c518 Scaffolding 2023-01-27 13:26:46 +00:00
1 changed files with 6 additions and 0 deletions

View File

@ -53,3 +53,9 @@ Many executions should be run in order to get a large sample of times.
Ideally, there should be tests run in multiple different environments, such as different hardware (Different ranges of PCs, mobile devices, consoles, etc.) and execution backends (.NET, Mono, il2cpp, etc.)
Performing sensible benchmarks requires the codebase to be near done, and require data of what users program, so these are best performed in the Verify phase.
# Scaffolding
The program consists of mostly pure functions, which do not require scaffolding for testing. Larger subsystems may require it, as the software runs in layers (passes).
For example, providing a scaffold lexer should be used to create parser tests that are lexer independent.
Likewise, ensuring ASTs can be geenrated without a parser is required for testing code evaluation without invoking the lexer or parser.