Ariadne

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 suite
  • script/test <file> runs all the tests in one file
  • script/test <file>:<line> runs the test defined on the specified line of a file
  • script/test '<glob>' runs tests in all the files matching the glob
    • make sure to wrap the GLOB in single quotes ''

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.

Next
Posts