@@ -38,7 +38,7 @@ import {
3838 IPowerShellExtensionClient ,
3939 PowerShellExtensionClient
4040} from './powershellExtensionClient'
41- import { clear , findTestItem , forAll , getTestItems , isTestItemOptions } from './testItemUtils'
41+ import { clear , findTestItem , forAll , getTestItems , getUniqueTestItems , isTestItemOptions } from './testItemUtils'
4242import debounce = require( 'debounce-promise' )
4343import { isDeepStrictEqual } from 'util'
4444/** A wrapper for the vscode TestController API specific to PowerShell Pester Test Suite.
@@ -193,8 +193,17 @@ export class PesterTestController implements Disposable {
193193 // If tests were changed that were marked for continuous run, we want to start a run for them
194194 const outdatedTests = new Set < TestItem > ( )
195195
196+
197+ //Get all children of the standing continuous run tests so that we make sure to run them if they are changed.
198+ const allContinuousRunTests = new Set < TestItem > ( this . continuousRunTests )
199+ this . continuousRunTests . forEach ( test =>
200+ getUniqueTestItems ( test . children ) . forEach (
201+ child => allContinuousRunTests . add ( child )
202+ )
203+ )
204+
196205 newAndChangedTests . forEach ( test => {
197- if ( this . continuousRunTests . has ( test ) ) {
206+ if ( allContinuousRunTests . has ( test ) ) {
198207 outdatedTests . add ( test )
199208 }
200209 } )
0 commit comments