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
With a tool like Pester, there are "BeforeAll" and "AfterAll" statements that run before a test suite. I suppose these are known as fixtures in some other tools.
If one of these fails when running a test, I want to report the status at the suite level (e.g. "Describe") in the tree. However, if someone click run on the individual test, the RunRequest doesn't allow updating the parent suite because it's not in the test list.
If I try to create a new testrunrequest that includes the parents, I end up with a duplicate run and it still doesn't report correctly (I can't peek the error). Example:
constinclude=request.include??getTestItems(this.testController.items)// add the parent test suites of the included tests so that their status can be updated. This is needed for BeforeAll/AfterAll test updatesconstincludeWithParents=include.flatMap(getParents).concat(include)constRequestWithParents=newTestRunRequest(includeWithParents,request.exclude,request.profile)construn=this.testController.createTestRun(RequestWithParents)
Implementation
I recommend either adding a switch to createRunProfile to include the parents of invoked tests in the runRequest, or make it so that you can createTestRun with a new TestRunRequest.
The text was updated successfully, but these errors were encountered:
@connor4312
Issue Description
With a tool like Pester, there are "BeforeAll" and "AfterAll" statements that run before a test suite. I suppose these are known as fixtures in some other tools.
If one of these fails when running a test, I want to report the status at the suite level (e.g. "Describe") in the tree. However, if someone click run on the individual test, the RunRequest doesn't allow updating the parent suite because it's not in the test list.
If I try to create a new testrunrequest that includes the parents, I end up with a duplicate run and it still doesn't report correctly (I can't peek the error). Example:
Implementation
I recommend either adding a switch to
createRunProfile
to include the parents of invoked tests in the runRequest, or make it so that you can createTestRun with a new TestRunRequest.The text was updated successfully, but these errors were encountered: