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
It's not currently possible. In theory we could get a list of tests and run each of them, but I don't think we can run a multiple tests in one go through package:test, so it might end up being much slower (as it'd have to run each one in its own debug session).
I'll keep an eye on that issue so if there are changes that would help support this, we can use them.
The issue was running a subset of tests from a suite in one go (without spawning lots of debug sessions). Running pub run test --name foo --name bar would require tests to match both foo and bar to run.
However, I think I found a way to handle this by combining them into a single regex like --name ^foo$|^bar$. I was able to make a command on the context menu for a suite that can re-run the failed tests there.
It won't be ready for the upcoming release, but I'll see if I can finish this off (it needs tests, and a way to run for all suites) for the next release. I'll ping you with a test build once it's done if you want to try it out.
Activity
DanTup commentedon Apr 15, 2020
It's not currently possible. In theory we could get a list of tests and run each of them, but I don't think we can run a multiple tests in one go through
package:test, so it might end up being much slower (as it'd have to run each one in its own debug session).I'll keep an eye on that issue so if there are changes that would help support this, we can use them.
HerrNiklasRaab commentedon Sep 25, 2020
What exactly is the blocker on this?
Add a context menu command to run only failed tests in a suite
DanTup commentedon Sep 28, 2020
The issue was running a subset of tests from a suite in one go (without spawning lots of debug sessions). Running
pub run test --name foo --name barwould require tests to match bothfooandbarto run.However, I think I found a way to handle this by combining them into a single regex like
--name ^foo$|^bar$. I was able to make a command on the context menu for a suite that can re-run the failed tests there.It won't be ready for the upcoming release, but I'll see if I can finish this off (it needs tests, and a way to run for all suites) for the next release. I'll ping you with a test build once it's done if you want to try it out.
Add a context menu command to run only failed tests in a suite
[-]Is there an option to run all failed tests?[/-][+]Ability to run all failed tests[/+]Add a context menu command to run only failed tests in a suite