mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-08 09:56:30 +00:00
Add tests requirements installation information (#1865)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
16edbcf8c4
commit
62fb1e29a7
@ -2,13 +2,15 @@
|
|||||||
title: "Testing your code"
|
title: "Testing your code"
|
||||||
---
|
---
|
||||||
|
|
||||||
As it states in the [Style guidelines section](development_guidelines.md) all code is checked to verify the following:
|
As stated in the [Style guidelines section](development_guidelines.md) all code is checked to verify the following:
|
||||||
|
|
||||||
- All the unit tests pass
|
- All the unit tests pass
|
||||||
- All code passes the checks from the linting tools
|
- All code passes the checks from the linting tools
|
||||||
|
|
||||||
Local testing is done using [pytest](https://docs.pytest.org/) and using [pre-commit](https://pre-commit.com/) for running out linters, which has been installed as part of running `script/setup` in the [virtual environment](development_environment.mdx).
|
Local testing is done using [pytest](https://docs.pytest.org/) and using [pre-commit](https://pre-commit.com/) for running out linters, which has been installed as part of running `script/setup` in the [virtual environment](development_environment.mdx).
|
||||||
|
|
||||||
|
Python test requirements need to be installed before tests can be run. This can be achieved by using the VScode devcontainer and the corresponding task. Check the [devcontainer documentation](/docs/development_environment#tasks) for guidance about running tasks.
|
||||||
|
|
||||||
To run our linters, on the full code base, run the following command:
|
To run our linters, on the full code base, run the following command:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user