Skip to content

Latest commit

 

History

History
78 lines (46 loc) · 1.65 KB

File metadata and controls

78 lines (46 loc) · 1.65 KB

Testing

You can help us testing coala in several ways.

Executing our Tests

coala has a big test suite. It is meant to work on every platform on every PC. If you just execute our tests you are doing us a favor.

To run tests, you will need to open a file located in the default coala directory.

If you have not already, you can start by cloning a copy of the project to your local machine.

Either fork the repo on Github https://github.com/coala-analyzer/coala, or clone it directly from coala.

$ git clone https://github.com/coala-analyzer/coala.git

Then navigate to the directory where coala is located.

Next you need to install some dependencies. This can be done by executing:

$ pip3 install -r test-requirements.txt -r requirements.txt

You can then execute our tests with

$ py.test

Note

If py.test seems to give errors, try running python3 -m pytest instead.

and report any errors you get!

To run our tests, you can also use python3 setup.py test

Note

If you need to customize test running, you can get more options about allowing skipped tests, getting code coverage displayed or omitting/selecting tests using py.test directly.

$ py.test --help

Note

You will not get a test coverage of 100% - the coverage on the website is merged for several python versions.

Using test coverage

To get coverage information, you can run:

$ py.test --cov

You can view the coverage report as html by running:

$ py.test --cov --cov-report html

The html report will be saved .htmlreport inside the coala repository.