Testing
Getting started
Before running the whole test suite with: script/test
, you must run bundle exec rake docs:preview
.
Run a subset of tests by supplying arguments to script/test
:
script/test
runs the full test suitescript/test <file>
runs all the tests in one filescript/test <file>:<line>
runs the test defined on the specified line of a filescript/test '<glob>'
runs tests in all the files matching the glob- make sure to wrap the
GLOB
in single quotes''
- make sure to wrap the
System tests
Ariadne ViewComponents utilizes Cuprite for system testing components that rely on JavaScript functionality.
By default, the system tests run in a headless Chrome browser. Prefix the test command with HEADLESS=false
to run the system tests in a normal browser.
Have questions?
Still have questions? Talk to support.