Skip to content

Commit b6be930

Browse files
encukouhroncok
authored andcommitted
Add test_requirements.txt, document running tests in the README
1 parent ea79102 commit b6be930

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:
44
cache:
55
- pip
66
install:
7-
- pip install -r requirements.txt pytest
7+
- pip install -r test_requirements.txt
88
script:
99
- python -m pytest test_naucse
1010
- python -m naucse freeze

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ Nainstalovanou aplikaci spustíš následovně:
3838
* Program vypíše adresu (např. `http://0.0.0.0:8003/`); tu navštiv v prohlížeči.
3939

4040

41+
## Testy
42+
43+
Chceš-li pustit testy, nainstaluj si závislosti:
44+
45+
```console
46+
$ python -m pip install -r test_requirements.txt
47+
```
48+
49+
a testy pusť:
50+
51+
```console
52+
$ python -m pytest test_naucse
53+
```
54+
55+
4156
## Licence
4257

4358
Kód je k dispozici pod licencí MIT, viz soubor [LICENSE.MIT].

test_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-r requirements.txt
2+
pytest

0 commit comments

Comments
 (0)