-
Notifications
You must be signed in to change notification settings - Fork 15
Testing
Anders Schau Knatten edited this page Jan 11, 2014
·
4 revisions
CppQuiz is tested at several levels:
Lettuce is a Behavior-Driven Development tool that we use for system testing. These tests are located in cppquiz/quiz/features
. To run the tests, use the run_lettuce
command found in the project root. See also the terrain.py
configuration file.
The Lettuce tests use Splinter, to drive all the tests through a Firefox instance.
These use the normal Django test client for system tests. It has a headless dummy browser that can simulate requests and test the response. It can not test JavaScript, for that we use Lettuce/Splinter.
System tests are recognized by the naming convention *_integration_test.py.
These are normal unit tests using the Python or Django unit testing packages.