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
OpenDAS
fairscale
Commits
4cd2590c
Unverified
Commit
4cd2590c
authored
Aug 06, 2020
by
Min Xu
Committed by
GitHub
Aug 06, 2020
Browse files
add pytest coverage (#24)
Co-authored-by:
Min Xu
<
m1n@fb.com
>
parent
7f3c07bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
.gitignore
.gitignore
+2
-0
CONTRIBUTING.md
CONTRIBUTING.md
+8
-0
requirements-test.txt
requirements-test.txt
+1
-0
No files found.
.gitignore
View file @
4cd2590c
...
...
@@ -9,3 +9,5 @@
build/
dist/
.coverage*
CONTRIBUTING.md
View file @
4cd2590c
...
...
@@ -65,6 +65,14 @@ mypy .
```
pytest
# single test
python -m pytest tests/nn/data_parallel/test_oss_ddp.py::test_on_cpu
```
### Check test coverage
```
python -m pytest --cov-report term --cov=fairscale/nn/data_parallel tests/nn/data_parallel/test_oss_ddp.py::test_on_cpu
```
### CircleCI status
...
...
requirements-test.txt
View file @
4cd2590c
...
...
@@ -3,6 +3,7 @@ flake8 == 3.7.9
isort == 4.3.21
mypy == 0.770
pytest == 5.4.1
pytest-cov == 2.10.0
torchtext == 0.6.0
torch == 1.5.1
# NOTE(msb) not a dependency but needed by torch
...
...
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