Skip to content
benrudolph edited this page Dec 5, 2014 · 5 revisions

Tests

Axis has a variety of test suites. It's imperative that these tests are passing. It's the only way to know if you've broken some functionality in the system.

Frontend/Javascript tests

The Javascript tests can be found in test/javascripts. To run the suite simply navigate to http://localhost:3000/qunit.

Note: Make sure the server is running!

Backend tests

Axis has two system for testing backend functionality. First is the regular rails testing suite. Run these with:

rake test
rake test:units # For just the unit tests

Note: Axis also utilizes Single Test to make it easier to run a single test.

The second framework Axis uses is RSpec. RSpec makes it simple to do function stubbing. Because of this RSpec is used to test the build process functionality.

rspec

Summarizer tests

To run the python tests for the summarizer, Axis uses py.test. The command to run is:

py.test -v script/python/summarizer/summarize_test.py

Travis

Axis uses Travis to ensure that all the tests are passing. You can view the status here: https://travis-ci.org/unhcr/axis.

Note: Travis does not run the Frontend tests