pytchlang / pytch-vm

Pytch: Core language and runtime
Other
3 stars 7 forks source link

Infrastructure: Better testing structure #20

Closed bennorth closed 4 years ago

bennorth commented 4 years ago

Move the scrappy collection of global functions into a proper JavaScript module pytch-testing, and use it in tests. Add support functions for running test suites or individual tests with a particular module or (Pytch) project. Mostly this is in preparation for allowing easy testing of automatic sprite/stage registration, to follow shortly. A nice side-effect is that we can now use mocha-parallel-tests, which gives a bit of a reduction in time taken to run tests. The diff is quite large but a lot of it is mechanical.

bennorth commented 4 years ago

The commit 477572d is massive, but only changes whitespace. If you're reviewing the whole change (rather than a commit at a time), best to either diff only up to that commit's parent (778b28b), or use the 'ignore whitespace changes' option to diff.