"nndet/vscode:/vscode.git/clone" did not exist on "2163757d78d8560d5f2158e6115f629b07670dc5"
Unverified Commit ccc06d19 authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[docs] [python-package] document how to run Python tests (#6995)



* [docs] [python-package] document how to run Python tests

* refer to installation instructions

---------
Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
parent 05881f92
......@@ -348,6 +348,19 @@ To check that a contribution to the package matches its style expectations, run
bash .ci/lint-python-bash.sh
To run the tests locally and compute test coverage, install the Python package using one of the options mentioned above.
Then run the following from the root of the repo.
.. code:: sh
pytest \
--cov=lightgbm \
--cov-report="term" \
--cov-report="html:htmlcov" \
tests/python_package_test/
Then open `htmlcov/index.html` to view a clickable coverage report.
.. |License| image:: https://img.shields.io/github/license/microsoft/lightgbm.svg
:target: https://github.com/microsoft/LightGBM/blob/master/LICENSE
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/lightgbm.svg?logo=python&logoColor=white
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment