-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Description
@connor4312 Is there any consideration to how I would present one or more tests as being related to a code item like a function?
For instance, in Pester you can tag tests with anything. If I allowed a special tag that let you say a test was assigned to a certain function named Invoke-MyFunction
, I'd want to expose a "play" button right next to the Invoke-MyFunction
definition to run all tests "tagged" to that function. In this case though I don't want it to be tracked with a separate ID, I want it to invoke those individual tests as part of the tag "rollup" which might be scattered across different files. Also tricky is how you would present a failure to the user in this case.
Ideally this would work with AutoRun as well whenever I change the function.
At any rate this is definitely a "nice to have" as opposed to a "must have" and could come at a later iteration, just a thought that would make testing really simple for people and not have to lose the context of where they are directly working on the application. I was inspired by your markdown test adapter example.
With the existing implementation it could just be offered under a "Function Test Rollup" header or something and aggregate the results together somehow, but when run it wouldn't update the "referenced" tests necessarily (though I guess I could do this within the context of the extension) so its fragmented and not ideal.
Originally posted by @JustinGrote in #107467 (comment)