summaryrefslogtreecommitdiff
path: root/tests/topotests/pytest.ini
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-14 20:29:14 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-01-14 20:29:14 -0500
commitb9f3e47f3a4010d8ea3179db7e6b602a40e349cb (patch)
tree5a464c524bd8e24c3260ee494046012f8b9e1d88 /tests/topotests/pytest.ini
parent9fad1340d4ce7798f843c70826dd1629fec6ddcb (diff)
tests: Start the ability to mark tests
Add the ability for our topotests to take advantage of pytest `mark`ing. This effectively allows you to tell pytest to run against certain sets of tests. For a demonstration purpose I've added in marks for: babel eigrp ldp ospf pim rip And setup tests to run against those tests that only test those protocols. You can run against eigrp tests by running `pytest -k eigrp` Other combinations are also available based upon simple boolean logic. Just read the pytest.mark documentation. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/pytest.ini')
-rw-r--r--tests/topotests/pytest.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/topotests/pytest.ini b/tests/topotests/pytest.ini
index 6e8e749092..fcbf853fac 100644
--- a/tests/topotests/pytest.ini
+++ b/tests/topotests/pytest.ini
@@ -1,6 +1,13 @@
# Skip pytests example directory
[pytest]
norecursedirs = .git example-test example-topojson-test lib docker
+markers =
+ babel: Tests that run against BABEL
+ eigrp: Tests that run against EIGRPD
+ ldp: Tests that run against LDPD
+ ospf: Tests that run against OSPF( v2 and v3 )
+ pim: Tests that run against pim
+ rip: Tests that run against RIP, both v4 and v6
[topogen]
# Default configuration values