You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: