| OLD | NEW | 
|---|
| 1 # Buildtools unit tests | 1 # Buildtools unit tests | 
| 2 | 2 | 
| 3 ## Introduction | 3 ## Introduction | 
| 4 | 4 | 
| 5 Unit tests for buildtools, using the pytest framework. | 5 Unit tests for buildtools, using the pytest framework. | 
| 6 | 6 | 
| 7 ## Approach | 7 ## Approach | 
| 8 | 8 | 
| 9 In order to test the buildtools capability of creating WebExtension-packages | 9 In order to test the buildtools capability of creating WebExtension-packages | 
| 10 for Chrome, Edge and Firefox, an example configuration for each platform is | 10 for Chrome, Edge and Firefox, an example configuration for each platform is | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 36 - Inlcusion of defined contentScripts into the manifest (CEF) | 36 - Inlcusion of defined contentScripts into the manifest (CEF) | 
| 37 - Packaging (and moving) of included icons / scripts / HTML files (CEF) | 37 - Packaging (and moving) of included icons / scripts / HTML files (CEF) | 
| 38 - Presence of files for all configured locales (CEF) | 38 - Presence of files for all configured locales (CEF) | 
| 39 - Correct import of translations with or without placeholders, with or without | 39 - Correct import of translations with or without placeholders, with or without | 
| 40   access keys (CEF) | 40   access keys (CEF) | 
| 41 - Translation presence and validity for the Chrome Web Store (C) | 41 - Translation presence and validity for the Chrome Web Store (C) | 
| 42 - Packaging of modularized script files with webpack (CEF) | 42 - Packaging of modularized script files with webpack (CEF) | 
| 43 - Adherence to provided build-number in the manifest (CEF) | 43 - Adherence to provided build-number in the manifest (CEF) | 
| 44 - Other content in the manifest (CEF) | 44 - Other content in the manifest (CEF) | 
| 45 - Correct encrypted signature of the package (C) | 45 - Correct encrypted signature of the package (C) | 
|  | 46 - Exposure of webpack's module aliasing machinery | 
| 46 | 47 | 
| 47 ## Requirements | 48 ## Requirements | 
| 48 | 49 | 
| 49 - [Tox](https://pypi.python.org/pypi/tox) (>= 2.7.0) | 50 - [Tox](https://pypi.python.org/pypi/tox) (>= 2.7.0) | 
| 50 | 51 | 
| 51 _(Tox will take care of installing the other dependencies such as flake8 and | 52 _(Tox will take care of installing the other dependencies such as flake8 and | 
| 52 flake8-abp inside a virtualenv.)_ | 53 flake8-abp inside a virtualenv.)_ | 
| 53 | 54 | 
| 54 ## Usage | 55 ## Usage | 
| 55 | 56 | 
| 56 To run the tests simply run | 57 To run the tests simply run | 
| 57 | 58 | 
| 58 ``` | 59 ``` | 
| 59 $ tox | 60 $ tox | 
| 60 ``` | 61 ``` | 
| 61 | 62 | 
| 62 in the buildtools' root folder. | 63 in the buildtools' root folder. | 
| 63 | 64 | 
| 64 ## Coverage | 65 ## Coverage | 
| 65 | 66 | 
| 66 Pytest will create a coverage report as output to the terminal, using the | 67 Pytest will create a coverage report as output to the terminal, using the | 
| 67 pytest plugin `pytest-cov`. | 68 pytest plugin `pytest-cov`. | 
| 68 | 69 | 
| 69 In order to get an html report you can add `--cov-report=html` to the | 70 In order to get an html report you can add `--cov-report=html` to the | 
| 70 pytest-command in tox.ini. | 71 pytest-command in tox.ini. | 
| 71 | 72 | 
| 72 For more information please refer to the | 73 For more information please refer to the | 
| 73 [coverage documentation](https://coverage.readthedocs.io/) | 74 [coverage documentation](https://coverage.readthedocs.io/) | 
| OLD | NEW | 
|---|