-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1582 from digitalfabrik/enhancement/docs
Add testing documentation
- Loading branch information
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
**************** | ||
Testing (Pytest) | ||
**************** | ||
|
||
|
||
We use :doc:`pytest <pytest:index>` to validate that the functionality of the cms works as expected. | ||
|
||
In addition, we use the following plugins: | ||
|
||
* :doc:`pytest-cov <pytest-cov:index>`: This plugin produces coverage reports. | ||
* :doc:`pytest-django <pytest-django:index>`: Provide a few helpers for Django | ||
* :doc:`pytest-xdist:index`: Enable distributing tests across multiple CPUs to speed up test execution | ||
|
||
For more information, see :doc:`topics/testing/index` and :doc:`topics/testing/overview`. | ||
|
||
For reference of our test framework and test cases, see :mod:`tests`. | ||
|
||
|
||
Coverage | ||
======== | ||
|
||
After each run, the test coverage is uploaded to `CodeClimate <https://codeclimate.com/github/digitalfabrik/integreat-cms>`__ (see :ref:`circleci-upload-test-coverage`). | ||
|
||
|
||
Test API with WebApp | ||
==================== | ||
|
||
To test the API in the web app with a different CMS server, open the JavaScript console of the web app and execute:: | ||
|
||
window.localStorage.setItem('api-url', 'https://cms-test.integreat-app.de') |