From 557125637d6aabe362fa8ebd88c4f26ebfa81eec Mon Sep 17 00:00:00 2001 From: Shubhamai Date: Fri, 10 Feb 2023 23:47:01 +0530 Subject: [PATCH] improving contributing tests section (#21569) * improving tests section * documenting other env variables --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ab7003a0937..50ab222387e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -337,7 +337,12 @@ $ RUN_SLOW=yes python -m pytest -n auto --dist=loadfile -s -v ./tests/models/my_ $ RUN_SLOW=yes python -m pytest -n auto --dist=loadfile -s -v ./examples/pytorch/text-classification ``` -Like the slow tests, custom tokenizer tests are skipped but you can set the `RUN_CUSTOM_TOKENIZERS` environment variable to `yes` to run them. +Like the slow tests, there are other environment variables available which not enabled by default during testing: +- `RUN_CUSTOM_TOKENIZERS`: Enables tests for custom tokenizers. +- `RUN_PT_FLAX_CROSS_TESTS`: Enables tests for PyTorch + Flax integration. +- `RUN_PT_TF_CROSS_TESTS`: Enables tests for TensorFlow + PyTorch integration. + +More environment variables and additional information can be found in the [testing_utils.py](src/transformers/testing_utils.py). 🤗 Transformers uses `pytest` as a test runner only. It doesn't use any `pytest`-specific features in the test suite itself.