... | ... | @@ -2,4 +2,30 @@ |
|
|
|
|
|
* [Introduction to python testing framework](http://pythontesting.net/start-here/)
|
|
|
* [pytest documentation](http://pytest.org/latest/contents.html)
|
|
|
* [An example running pytest with web2py](https://github.com/viniciusban/web2py.test) |
|
|
\ No newline at end of file |
|
|
* [An example running pytest with web2py](https://github.com/viniciusban/web2py.test)
|
|
|
|
|
|
##### Run all tests
|
|
|
|
|
|
```
|
|
|
> cd scripts
|
|
|
> run -S test_limbra pytest --verbose
|
|
|
```
|
|
|
#### Run all test in a test repository
|
|
|
|
|
|
```
|
|
|
> cd scripts
|
|
|
> run -S test_limbra pytest ../tests/harvest_tools/Automaton/
|
|
|
```
|
|
|
#### Run a single test
|
|
|
|
|
|
```
|
|
|
> cd scripts
|
|
|
> run -S test_limbra pytest ../tests/invenio_tools/Record/test_acl_cds1951625.py::test_authors
|
|
|
```
|
|
|
|
|
|
### Generate profile
|
|
|
|
|
|
```
|
|
|
> cd scripts
|
|
|
> run -S test_limbra pytest --profile-svg ../tests/harvest_tools/Automaton/test_single_harvester.py::test_lhcb_acl
|
|
|
``` |