1. Available tests
- Python
- Unit testing (--unit)
- Functional testing (--functional)
- Code coverage (--coverage)
- Selenium Grid (--grid)
- Javascript
- Unit testing (--jsunit)
- Code coverage (--js-coverage)
2. Short description of the tests
2.a Unit testing
Unit tests consist of verifying isolated part of the source code, check if it works as intended. For example, let us take a function and an unit test which checks the following property: when the function is called with argument A, it outputs the value B. This test allows to ensure that this property is respected while working on this function. In the end, if we refactor, modify, improve this function, we have a way to check that we do not break any properties defined by unit tests.
2.b Functional testing
Whereas Unit Testing takes care of very low level testing, Web Functional testing takes place at the user-end layer. The common adopted strategy is to simulate a web browser and some user’s actions, this way we can check if we end up on the right page when we click on a specific link, moreover we can check the content of the page.
2.c Code coverage
Code coverage allows you to see which part of the code is executed when running some unit tests. It gives a measure of pourcentage of the tested source code.
2.d Selenium grid
It is not really a type of test, but it is important enough to be mentioned here. With this tool, you will be able to run your functional tests on all sort of browsers and operating systems.
