File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed
src/Cli/dotnet/commands/dotnet-test Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -134,23 +134,21 @@ private void InitializeTestApplications(IEnumerable<Module> modules)
134134 {
135135 foreach ( Module module in modules )
136136 {
137- if ( module . IsTestProject )
137+ if ( ! module . IsTestProject )
138138 {
139- if ( module . IsTestingPlatformApplication )
140- {
141- var testApp = new TestApplication ( module , _args ) ;
142- _testApplications . Add ( testApp ) ;
143- }
144- else // If one test app has IsTestingPlatformApplication set to false, then we will not run any of the test apps
145- {
146- _areTestingPlatformApplications = false ;
147- return ;
148- }
139+ // Non test projects, like the projects that include production code are skipped over, we won't run them.
140+ return ;
149141 }
150- else
142+
143+ if ( ! module . IsTestingPlatformApplication )
151144 {
152- // Non test projects, like the projects that include production code are skipped over, we won't run them.
145+ // If one test app has IsTestingPlatformApplication set to false, then we will not run any of the test apps
146+ _areTestingPlatformApplications = false ;
147+ return ;
153148 }
149+
150+ var testApp = new TestApplication ( module , _args ) ;
151+ _testApplications . Add ( testApp ) ;
154152 }
155153 }
156154
You can’t perform that action at this time.
0 commit comments