-
Notifications
You must be signed in to change notification settings - Fork 2
Home
tpronk edited this page Dec 9, 2022
·
27 revisions
Home
Step-by-step guide for installing psychojs_testing and associated repos.
Shorthand command that compiles the PsychoJS library, deploys test experiments (insofar required), and runs the tests, all in one go.
Learn how to create a new unit/integration via Karma and run it.
WebdriverIO testing of PsychoJS consists of robots operating web-browsers to participate in test experiments. Below you can find guides for different WebdriverIO-related tasks.
- Setting up a Selenium or Appium server. If you'd like more than the server provided out-of-the-box.
-
Creating a new WebdriverIO test. Introduces the basics.
- Creating a new test experiment. How your test-experiment should look like.
- Creating a new WebdriverIO testscript. A testscript acts like a "robot" that takes part in your test experiment.
- Using SharedBehaviors. These are a set of behaviors commonly needed to test a PsychoJS experiment.
- Using custom browser commands. These a couple of custom commands of the browser object.
- Visual regression testing of screenshots. For checking whether visual stimuli look as you'd expect.
- Compiling the test experiments from psyexp to JS. This is similar to exporting an experiment to HTML from within the PsychoPy builder, but then automated.
- Deploying the test experiments with a PsychoJS build. Takes a test-experiment in JS format, adds the PsychoJS library, and creates an index.html.
- Running WebdriverIO tests. How to run a WebdriverIO test
- Technology and design of PsychoJS WebdriverIO tests. Learn about the nuts and bolts of using WebdriverIO to test PsychoJS.
- Testing workflow. An overview of the different steps in the testing workflows
- Overview of tests. An overview of available tests.
- Testrun CLI options. How to configure a Karma/WebdriverIO testrun
- Test configuration file. How a test is described
- Platform naming scheme. How to specify a particular platform to run your tests on
- Platform list. A list of platforms available to test on via BrowserStack
- Organization of test logs. How the test logs are structured
- Maintenance guides. Pointers for common psychojs_testing maintenance scenarios
About running tests via GitHub virtual machines.