-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Description
Thanks for the feedback on runnability. I'm considering something like this, but will continue to think it over:
One solution to this that I think could work decently well is having a run configuration be able to define one (or more) "tag" strings, and allow tests items to have an array of tag strings. For any configuration where tags are defined, the editor would only apply that to test items that have the same tag. We had a request for tagging before as an organizational tool, but that could also work for this.
So for example you could have a custom "runnable" tag not present on subtests, and the presented Go scenario could have a "runnable-darwin" tag to indicate a test only runnable on a certain platform/under certain configurations.
interface TestRunProfile {
tag?: TestTag;
// ...
}
interface TestItem {
tags?: readonly TestTag[];
// ...
}
class TestTag {
readonly id: string;
// maybe more things like a label later, if this is ever exposed in UI
}
Originally posted by @connor4312 in #122208 (comment)