Skip to content

Overview of tests

tpronk edited this page Jul 8, 2021 · 6 revisions

Home - Test organization - Overview of tests


These tables contain the tests that are currently available. Per test it shows:

  • Path. Path to the test inside of the tests directory
  • Labels. Labels assigned to this test
  • URLs. For WebdriverIO tests, if pavlovia_url is defined, links to the test-experiment's Runner and GitLab
  • Description. A description of what is being tested

The markdown below can be generated by running:

node scripts/cli/tabulateTests.cjs --label * --outputFormat table

Karma tests

Path Labels Description
karma_formattedString karma_formattedString, karma, full, short Formatting strings using ${} placeholders
karma_randomization karma_randomization, karma, full, short Randomization algorithms: util.shuffle and TrialHandler._prepareSequence with various methods

WebdriverIO tests

Path Labels URLs Description
demo_polyfill demo_polyfill, wdio, full Run GitLab Start the demo_polyfill experiment, which runs a whole bunch of tests, then check whether the experiment finishes
wdio_calibration wdio_calibration Run GitLab Maps clicks on the canvas to PsychoJS height coordinates, which can be used to calibrate pointer actions.
wdio_code wdio_code, wdio, full, short Run GitLab Presents a code component which executes code on each of it's tabs
wdio_conditions wdio_conditions, wdio, full, short Run GitLab Imports a CSV and XLSX conditions file, loops over conditions sequentially, via RANDOM, and FULL_RANDOM
wdio_error wdio_error, wdio, full, short Triggers a semantic JS error and checks if the error is logged via data-error in the HTML body
wdio_img wdio_img, wdio, full, short Run GitLab Presents a JPG and PNG image, both straight and rotated by 5 degrees
wdio_mouseview wdio_mouseview, wdio, full Run GitLab Tests the MouseView library integrated into PsychoJS
wdio_polygons wdio_polygons, wdio, full, short Run GitLab Presents a bunch of Polygons, both straight and rotated by 5 degrees
wdio_slider wdio_slider, wdio, full Presents a simple slider
wdio_sound wdio_sound, wdio, full, short Run GitLab Presents a sound stimulus
wdio_text wdio_text, wdio, full, short Run GitLab Presents a test stimulus with Western, Arabic, and Chinese glyphs, both in a Serif font and a Sans-serif font
wdio_textbox wdio_textbox Run GitLab Presents an editable textbox, then shows what was typed in
wdio_video wdio_video, wdio, full, short Run GitLab Presents a video stimulus

Clone this wiki locally