Skip to content

Testing

Erik Hetzner edited this page Apr 19, 2018 · 2 revisions

Aperta uses rspec, capybara and qunit for testing.

Running rspec tests

You can run the rspec tests using bundle exec rspec.

Running qunit tests from the command line

You can run the javascript specs via the command line with bundle exec rake ember:test.

Running qunit tests from the browser

You can also run the javascript specs from the browser. To do this run ember test --serve from client/ to see the results in the browser.

How to write tests in Aperta

  1. Write rspec tests for your rails models, controllers, services, serializers, etc. Our rspec tests are pretty good and can be used as examples.
  2. Write qunit tests for Ember components. We don't have great patterns for these
  3. Do not write Ember acceptance tests.
  4. Write Capybara happy path tests if you are developing a brand new feature.
Clone this wiki locally