Skip to content
Anders Schau Knatten edited this page Jan 11, 2014 · 4 revisions

CppQuiz is tested at several levels:

BDD with Lettuce/Splinter

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.

System tests

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.

Unit tests

These are normal unit tests using the Python or Django unit testing packages.

Clone this wiki locally