Skip to content

Commit

Permalink
[Doc] Update write_test.md (taichi-dev#7745)
Browse files Browse the repository at this point in the history
Mention to reader that they need to install dependencies before running
tests.
  • Loading branch information
houkensjtu authored and quadpixels committed May 13, 2023
1 parent 068ede1 commit 227ab32
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/lang/articles/contribution/write_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ Normally we write functional tests in Python.
For example, you've just added a utility function `ti.log10`. Now you
want to write a **test** to ensure that it functions properly.

:::note

Before running the test launcher `tests/run_tests.py`, you need to install the corresponding
dependencies:
```bash
pip install -r requirements_test.txt
```

:::

## Add a new test case

Look into `tests/python`, see if there is already a file suitable for your
Expand Down

0 comments on commit 227ab32

Please sign in to comment.