forked from equinor/gordo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
42 lines (35 loc) · 1.57 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[aliases]
# All tests in parallel, minus any requiring docker
test = pytest --addopts "-n auto -m 'not dockertest' --ignore benchmarks"
# Test _everything_
testall = pytest --addopts "--ignore benchmarks"
# Only run tests which use docker
testdocker = pytest --addopts "-m 'dockertest'"
# Component level filtering of tests
testbuilder = pytest --addopts "tests/gordo/builder"
testcli = pytest --addopts "tests/gordo/cli"
testclient = pytest --addopts "tests/gordo/client"
testmachine = pytest --addopts "tests/gordo/machine"
testdataprovider = pytest --addopts "tests/gordo/machine/dataset/data_provider"
testdataset = pytest --addopts "tests/gordo/machine/dataset"
testmodel = pytest --addopts "tests/gordo/machine/model"
testserializer = pytest --addopts "tests/gordo/serializer"
testserver = pytest --addopts "tests/gordo/server"
testutil = pytest --addopts "tests/gordo/util"
testworkflow = pytest --addopts "tests/gordo/workflow"
# Black formatting
testformatting = pytest --addopts "tests/test_formatting.py"
# all else, ie mypy, flakes, examples, etc.
testallelse = pytest --addopts
"--ignore tests/gordo/builder
--ignore tests/gordo/cli
--ignore tests/gordo/client
--ignore tests/gordo/machine
--ignore tests/gordo/serializer
--ignore tests/gordo/server
--ignore tests/gordo/util
--ignore tests/gordo/watchman
--ignore tests/gordo/workflow
--ignore tests/test_formatting.py
--ignore benchmarks"
testbenchmarks = pytest --addopts "--benchmark-only benchmarks/"