Cannot run Junit5 test suite #1484
Replies: 7 comments 5 replies
-
Please try Tycho 3.0.0 or 3.1.0-SNAPSHOT. |
Beta Was this translation helpful? Give feedback.
-
I'm having big problems with using 3.0.0:
|
Beta Was this translation helpful? Give feedback.
-
Are you using Java 17 to run your build? |
Beta Was this translation helpful? Give feedback.
-
Found the issue, I think you can close it. My JAVA_HOME was pointing to a different java then in the PATH, I'm currently trying to run the tests with 3.0.0 |
Beta Was this translation helpful? Give feedback.
-
No, still the same issue, doesn't find any tests. |
Beta Was this translation helpful? Give feedback.
-
But runs all tests when I just use **/*Test.java |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. See #2462 |
Beta Was this translation helpful? Give feedback.
-
Hi, I've tried a lot of different things to run a junit5 test suite with tycho surefire. In Eclipse the suite is executed fine but with tycho it does not find any tests. I can run the whole test suite with tycho and it recoginizes all single tests but when I try to run only the test suite it does not find any tests. I've tried with include and with testclass. I renamed my test suite to end with "*Test" or "*Tests" but nothing helped.
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
import com.MyBasicTests;
@suite
@SelectClasses({ MyBasicTests.class })
public class RunAllTest {
}
tychon version 2.7.5
Beta Was this translation helpful? Give feedback.
All reactions