You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ecf053
Browse filesBrowse the repository at this point in the historyBrowse files
returnfmt.Sprintf("The test selection '%s' must be an absolute workspace path, such as /Workspace/Users/someone@example.com/orders/tests/test_orders.py.", entry)
128
+
}
129
+
}
130
+
return""
131
+
}
132
+
108
133
// collectPipelineTests stands in for pytest collection: it finds the top-level "def test_*"
109
134
// functions in the workspace test_*.py files under each selection, or under rootPath without one.
110
135
// Like origin.test_case_id, a test ID is the absolute workspace path of its file followed by the
// The messages are the service's, from PipelineTestSelection.
174
+
foroptions, message:=rangemap[string]string{
175
+
`{"pytest_args": ["-korders"]}`: "pytest_args accepts only -k and -m, each followed by its value. Got '-korders'.",
176
+
`{"pytest_args": ["-x"]}`: "pytest_args accepts only -k and -m, each followed by its value. Got '-x'.",
177
+
`{"pytest_args": ["-m"]}`: "The pytest_args option '-m' must be followed by its value.",
178
+
`{"pytest_args": ["-k", " "]}`: "The value of the pytest_args option '-k' must not be empty.",
179
+
`{"pytest_args": ["-k", "-m"]}`: "The value of the pytest_args option '-k' must not start with '-'. Got '-m'.",
180
+
`{"test_selection": ["tests/test_a.py::t"]}`: "The test selection 'tests/test_a.py::t' must be an absolute workspace path, such as /Workspace/Users/someone@example.com/orders/tests/test_orders.py.",
0 commit comments