I have tried to find if this issue already was reported but could not find it. If it was already a known issue, just let me know.
When I run a single test in CLion with the regular executor it will run a single test and all other tests in the module are marked as filtered out:
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 9 filtered out
But if I run this same test in debugmode, it will run all tests in the module:
test result: FAILED. 8 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out.
I expected it to behave the same as the regular run.
Side-note: It even appears to run everything in parallel.
I see the same behavior, makes debugging modules with more than one test almost impossible to debug!
The reason for this seems to be wrong placement of the double dash which separates the commands.
This is an example command as created by the plugin:
test --package ethcore --lib engines::tendermint::tests::seal_submission -- --exact
And this is what it should look like:
test --package ethcore --lib -- engines::tendermint::tests::seal_submission --exact
Quick workaround if you need one -
-- in the correct position as shown by @d10r aboveYou can then debug into this configuration, and you'll get only one test running.
Most helpful comment
Quick workaround if you need one -
--in the correct position as shown by @d10r aboveYou can then debug into this configuration, and you'll get only one test running.