Skip to content

Commit 9c98db5

Browse files
committed
Add rationale for ensure_cratedb_layer
1 parent 6870fc5 commit 9c98db5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/crate/client/tests.py

+13
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ def setUpMocked(test):
117117

118118

119119
def ensure_cratedb_layer():
120+
"""
121+
In order to skip individual tests by manually disabling them within
122+
`def test_suite()`, it is crucial make the test layer not run on each
123+
and every occasion. So, things like this will be possible::
124+
125+
./bin/test -vvvv --ignore_dir=testing
126+
127+
TODO: Through a subsequent patch, the possibility to individually
128+
unselect specific tests might be added to `def test_suite()`
129+
on behalf of environment variables.
130+
A blueprint for this kind of logic can be found at
131+
https://github.com/crate/crate/commit/414cd833.
132+
"""
120133
global crate_layer
121134

122135
if crate_layer is None:

0 commit comments

Comments
 (0)