-
Notifications
You must be signed in to change notification settings - Fork 85
Wrong classname for Parameterized Tests on jenkins #1630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Causes SWT builds to fail :-( |
How to "dependency to this one being added in the surefire configuration (dependency tag) " ? Can we try to? |
Please test with swt locally whether your change works. |
I have no clue how todo so, i never build locally. please instruct |
|
The Jenkinsfile gives you a hint how to execute this on your machine. Beside that I have no clue what "clover" is and where we use it but wanted to mention that the tests are not executed with standard maven-surefire-plugin, for verification builds it uses tycho-surefire-plugin and the I-Builds use something totally different, so any documentation that assumes standard testing setups might not apply here! |
For the record - SWT uses maven-surefire as the tests there are better run as plain old java https://github.com/eclipse-platform/eclipse.platform.swt/blob/master/tests/org.eclipse.swt.tests/pom.xml |
https://github.com/openclover/clover-examples/blob/master/parameterized-junit4-example/pom.xml shows it needs
somehow to work ... I assume thats where the listener is located. |
for example org.eclipse.equinox.common.tests.text.StringMatcherFindTest
results in junit result XMLs like
<testcase classname="[line 50: NOK pattern=a*bc*d, text=.abeced[0,7]]" name="testFind[line 50: NOK pattern=a*bc*d, text=.abeced[0,7]]" time="0.0" />
which jenkins shows like
https://ci.eclipse.org/releng/job/AutomatedTests/job/ep431I-unit-win32-java17/lastSuccessfulBuild/testReport/[line%20103_%20OK%20pattern=*a*b*g*n*t,%20text=abcd_abcdefg_abcdefghijk_abcdefghijklmnop/txt]/testStringMatchCaseInsensitive_line_103__OK_pattern__a_b_g_n_t__text_abcd_abcdefg_abcdefghijk_abcdefghijklmnop_txt_/
the "classname" in the xml is wrong.
https://openclover.org/doc/manual/4.2.0/maven--surefire-and-junit4-parameterized-tests.html
say we have to add JUnitTestRunnerInterceptor to maven-surefire-plugin
The text was updated successfully, but these errors were encountered: