Open carstenartur opened 2 years ago
@carstenartur can you provide an integration-test to demonstrate the issue?
I just tried to setup eclipse for tycho development but just have ran into an error: maybe there has been some github migration and it is not finished? At least the oomph setup seems to be pointing to the no longer existing gerrit based git repositories unless I'm not mistaken...
@carstenartur you can setup an example project first, and import only the itest-project, you don't need a full IDE setup.
Tbh currently I think it would be more useful in this concrete case to find out how I can run the tests in the jdt.ui pull request without tycho. So the question is how I can mix - everything else running through tycho and some new tests using surefire directly. It looks like this is much faster. But I will try something to extract the issue into a sample project as soon as I find some time. Thanks so far!
Tbh currently I think it would be more useful in this concrete case to find out how I can run the tests in the jdt.ui pull request without tycho.
No one forces you to run them with Tycho :-)
So the question is how I can mix - everything else running through tycho and some new tests using surefire directly.
Simply use eclipse-plugin
as packaging and configure maven-surefire as you like.
Might this be just a naming problem? Your Suite name does not match any of the default include patterns: https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#includes
Might this be just a naming problem? Your Suite name does not match any of the default include patterns: https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/test-mojo.html#includes
You mean the explicit
The include configuration takes Java source names, not class file names. But besides that I really recommend naming suites no different than other tests. I've run into the issue of non-execution because of not being named FooTest or TestFoo way too often in multiple tools already.
Here you see some documentation that claims default pattern is using ".class" ending. I guess what is needed is an option to make the search patterns applied visible in the log. It is just too intransparent what is going on otherwise. https://www.eclipse.org/tycho/sitedocs/tycho-surefire-plugin/plugin-info.html However, it could easily be that I'm completely wrong. I did not check the sourcecode.
Hi I am experiencing the same problem. I am trying to run my tests on Tycho 4.0.0 with the tycho-surefire-plugin. It recognises the junit5 test classes but if i specify in the "includes" parameter only the junit5 testsuites then it says that no tests have been found.
You can see what I mean looking at the pull request at https://github.com/eclipse-jdt/eclipse.jdt.ui/pull/129 It contains a suite like this:
The pom file contains
Unfortunately tycho does not find the junit5 suite. As soon as I exchange the entry with the (single) junit5 test class VisitorTest it works fine.