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
// Will need https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2257 and a reconsume by VSCode
171
173
Log.error(
172
174
"Could not read configuration while evaluating whether to run a test. This is a known issue when running tests in the VS Code IDE. To work around the problem, run individual test methods.");
175
+
} elseif (isMaybeVSCode) {
176
+
// Will need https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2257 and a reconsume by VSCode
177
+
Log.error(
178
+
"Could not read configuration while evaluating whether to run a test. It looks like you're probably running tests with VS Code. This is a known issue when running tests in the VS Code IDE. To work around the problem, run individual test methods.");
173
179
} elseif (isEclipse) {
174
180
// Tracked by https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/2257; fixed in Eclipse 4.37
175
181
Log.error(
@@ -185,7 +191,7 @@ public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext con
Log.debug("The class of the class we use for mapping is " + TestConfig.class.getClassLoader());
188
-
Stringmessage = isVSCode
194
+
Stringmessage = isVSCode || isMaybeVSCode
189
195
? "Could not execute test class because it was loaded with the wrong classloader by the VS Code test runner. Try running test methods individually instead."
190
196
: isEclipse
191
197
? "Could not execute test class because it was loaded with the wrong classloader by the Eclipse test runner. Try running test methods individually, or edit the run configuration and add `-uniqueId [engine:junit-jupiter]/[class:"
0 commit comments