indico.tests - test framework¶
The framework is called through
setup.py with the argument
test and optional flags such as
- Some dependencies are required:
Each test category is also a class, inheriting from another class named
BaseTestRunner, which contains useful functions used by all the test classes.
TestManager is in charge of instantiating each test class and to call their
Some external components such as JAR files (for
js-test-driver) are automatically downloaded.
All the information for the downloads is stored in the tests configuration file.
2.2. Implementing a new
To add a new test to the framework, one has to add a new class inheriting from
BaseTestRunner with a method called
A flag can be added in
setup.py to run only the new test.
Finally, if for some reason you need to add permanent files in the tests folder, remember to follow the naming convention, which is one folder for each progamming language and one folder for each test category.