@@ -116,20 +116,18 @@ public void RunTestsWithXunitAdapter(RunnerInfo runnerInfo)
116
116
[ TestMethod ]
117
117
[ TestCategory ( "Windows-Review" ) ]
118
118
[ NetFullTargetFrameworkDataSource ]
119
- public void RunTestsWithChutzpahAdapter ( RunnerInfo runnerInfo )
119
+ public void RunTestsWithNonDllAdapter ( RunnerInfo runnerInfo )
120
120
{
121
+ // This used to be test for Chutzpah, but it has long running problem with updating dependencies,
122
+ // so we test against our own test framework, to ensure that we can run test files that are not using
123
+ // *.dll as extension.
121
124
SetTestEnvironment ( _testEnvironment , runnerInfo ) ;
122
125
Setup ( ) ;
123
126
124
127
var jsSource = Path . Combine ( _testEnvironment . TestAssetsPath , "test.js" ) ;
125
-
126
- // Chuzpah adapter creates _Chutzpah temp files, to give data back from the runner.
127
- // But when cleaning up it deletes all the _Chutzpah files, not just the one it owns,
128
- // so when we run in parallel, the slower process will never find it's own file, because it was already deleted:
129
- // https://github.com/mmanela/chutzpah/issues/812
130
128
var jsInTemp = TempDirectory . CopyFile ( jsSource ) ;
131
129
132
- var testAdapterPath = Directory . EnumerateFiles ( GetTestAdapterPath ( UnitTestFramework . Chutzpah ) , "*.TestAdapter.dll" ) . ToList ( ) ;
130
+ var testAdapterPath = Directory . EnumerateFiles ( GetTestAdapterPath ( UnitTestFramework . NonDll ) , "*.TestAdapter.dll" ) . ToList ( ) ;
133
131
_vstestConsoleWrapper . InitializeExtensions ( new List < string > ( ) { testAdapterPath . First ( ) } ) ;
134
132
135
133
_vstestConsoleWrapper . RunTests (
@@ -140,9 +138,8 @@ public void RunTestsWithChutzpahAdapter(RunnerInfo runnerInfo)
140
138
var testCase = _runEventHandler . TestResults . Where ( tr => tr . TestCase . DisplayName . Equals ( "TestMethod1" ) ) ;
141
139
142
140
// Assert
143
- Assert . AreEqual ( 2 , _runEventHandler . TestResults . Count ) ;
141
+ Assert . AreEqual ( 1 , _runEventHandler . TestResults . Count ) ;
144
142
Assert . AreEqual ( 1 , _runEventHandler . TestResults . Count ( t => t . Outcome == TestOutcome . Passed ) ) ;
145
- Assert . AreEqual ( 1 , _runEventHandler . TestResults . Count ( t => t . Outcome == TestOutcome . Failed ) ) ;
146
- Assert . AreEqual ( 1 , testCase . First ( ) . TestCase . LineNumber ) ;
143
+ Assert . AreEqual ( 0 , _runEventHandler . TestResults . Count ( t => t . Outcome == TestOutcome . Failed ) ) ;
147
144
}
148
145
}
0 commit comments