-
Notifications
You must be signed in to change notification settings - Fork 4
Dev Testing
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.
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!
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
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
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