How can I select multiple tests on py.test?
pytest
Solution
`py.test -k "connect or return"` should work. Are you using pytest==2.3.4? Could you paste the output from "py.test" otherwise along with the tests?
Problem
I'm familiar with the command `py.test -k string` for select all tests that contains the `string` in their name and run it. What I want is to select tests with more than one `string` parameter like an `OR` logical selection. For example, let's say that I have 3 tests: - `test_should_connect` - `test_should_execute` - `test_should_return` And let's say I just want to run `test_should_connect` and `test_should_return` only. I've looked for an answer in py.test documentation, and to do that I should use the following command: ``` py.test -k "connect or return" ``` But, this doesn't work =/