From 227ab323d8edf436b60a03fbf51dd126faec358a Mon Sep 17 00:00:00 2001 From: Qian Bao Date: Thu, 6 Apr 2023 14:37:49 +0800 Subject: [PATCH] [Doc] Update write_test.md (#7745) Mention to reader that they need to install dependencies before running tests. --- docs/lang/articles/contribution/write_test.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/lang/articles/contribution/write_test.md b/docs/lang/articles/contribution/write_test.md index 3f65b8a38e6f2..fa3c22e1f4de1 100644 --- a/docs/lang/articles/contribution/write_test.md +++ b/docs/lang/articles/contribution/write_test.md @@ -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