Scripts for automated testing of PsychoJS and associated libraries. See the wiki for detailed documentation on installing, using, or extending psychojs_testing. Read on for a brief overview of the features.
- We support unit testing via karma and end-to-end testing via WebdriverIO
- Screenshots can taken automatically and be subjected to a visual regression test
- Tests can be coordinated by your local device or via GitHub Actions
- Test clients can be your local browsers or a collection of BrowserStack devices
- Tests can be hosted by your local webserver, a staging server, or any other server that offers a URL (like Pavlovia)
- There are some shorthand commands for easily running standard testing scenarios and a whole bunch of CLI options to run specific steps only
- A series of tests can be run in one go by giving them a label
- A plethora of test logs are available, summarized in a handy table
- There is a collection of tests already available, but be welcome to add more!
- Tests can be triggered automatically on a change in the code base via a set of watchers (not documented yet)