Skip to content

Commit 04c8da0

Browse files
committed
Exclude integration tests from default test and coverage tasks
Add -m 'not integration' to pixi test and test-cov tasks so tests requiring a running GridAPPS-D instance are skipped in CI.
1 parent aebf5fb commit 04c8da0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ py314 = { features = ["dev", "py314"], solve-group = "py314" }
8484
# ──────────────────────────────────────────────────────────────────────────────
8585
# Testing
8686
# ──────────────────────────────────────────────────────────────────────────────
87-
test = { cmd = "pytest gridappsd-python-lib/tests -v", description = "Run main library tests" }
88-
test-cov = { cmd = "pytest gridappsd-python-lib/tests -v --cov=gridappsd --cov-report=term-missing --cov-report=html", description = "Run tests with coverage" }
87+
test = { cmd = "pytest gridappsd-python-lib/tests -v -m 'not integration'", description = "Run main library tests" }
88+
test-cov = { cmd = "pytest gridappsd-python-lib/tests -v -m 'not integration' --cov=gridappsd --cov-report=term-missing --cov-report=html", description = "Run tests with coverage" }
8989
test-field-bus = { cmd = "pytest gridappsd-field-bus-lib/tests -v", description = "Run field bus tests" }
9090
test-all = { depends-on = ["test", "test-field-bus"], description = "Run all tests" }
9191
test-integration = { cmd = "pytest gridappsd-python-lib/tests -v -m integration", description = "Run integration tests only" }

0 commit comments

Comments
 (0)