Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
55712563
Unverified
Commit
55712563
authored
Feb 10, 2023
by
Shubhamai
Committed by
GitHub
Feb 10, 2023
Browse files
improving contributing tests section (#21569)
* improving tests section * documenting other env variables
parent
3b7ed25d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
CONTRIBUTING.md
CONTRIBUTING.md
+6
-1
No files found.
CONTRIBUTING.md
View file @
55712563
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment