coverage-crawler/README.md

23 строки
1.1 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2018-02-15 16:44:04 +03:00
# coverage-crawler
[![Task Status](https://community-tc.services.mozilla.com/api/github/v1/repository/mozilla/coverage-crawler/master/badge.svg)](https://community-tc.services.mozilla.com/api/github/v1/repository/mozilla/coverage-crawler/master/latest)
2018-03-14 19:09:29 +03:00
2018-02-15 16:44:04 +03:00
A crawler to find websites that exercise code in Firefox that is not covered by unit tests
2018-03-16 14:19:57 +03:00
## Software requirements
- Python 3.6+
- [Mercurial](https://www.mercurial-scm.org/)
2018-08-27 13:02:21 +03:00
## Usage as a script
2018-03-16 14:19:57 +03:00
2018-03-19 13:36:03 +03:00
- Install requirements with `pip install -r requirements.txt`;
2018-03-16 14:19:57 +03:00
- Install development requirements with `pip install -r test-requirements.txt`;
2018-08-27 13:02:21 +03:00
- Run the `download_artifacts.py` script with the desired revision passed as argument to download the latest Firefox coverage build;
- Run the `run_crawler.py` script.
## Usage as a module
- Add this project's repository to your requirements file as a Git dependency;
- Import `coverage_crawler`;
- Use function `download_artifacts` from `latest_cov_build.py` with the desired revision passed as argument to download the latest Firefox coverage build and other artifacts;
- Run function `run` from `crawler.py` with the desired website passed as an argument.