This issue has been created
There are 6 updates, 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-7473bdcb-feae-40d1-b3d5-4992dbe26d33 XCOMMONS-3201 Open

@RunWith-based junit 4 tests are not executed anymore

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-f2fada18-ddf4-49f3-86f7-5c3ec4a9654c Thomas Mortagne created this issue on 14/Nov/24 16:29
 
Summary: @RunWith based junit 4 test are not executed anymore
Issue Type: cid:jira-generated-image-avatar-7473bdcb-feae-40d1-b3d5-4992dbe26d33 Bug
Affects Versions: 15.2-rc-1
Assignee: Unassigned
Components: Development Issues only - Test
Created: 14/Nov/24 16:29
Priority: cid:jira-generated-image-static-blocker-ec36243b-0150-4992-ae7d-fabaf18d1a7b Blocker
Reporter: Thomas Mortagne
Description:

They seem to be executed in practice, but their result is completely ignored by Surefire...

The regression has been introduced by XCOMMONS-2653 (15.2RC1).

 
 

6 updates

 
cid:jira-generated-image-avatar-f2fada18-ddf4-49f3-86f7-5c3ec4a9654c Changes by Thomas Mortagne on 14/Nov/24 16:29
 
Summary: @RunWith based junit 4 test tests are not executed anymore
Fix Version: 16.10.0-rc-1
Fix Version: 15.10.14
Fix Version: 16.4.6
Description: They seem to be executed in practice, but their result is completely ignored by Surefire...

This impacts many rendering and filter tests.

The regression has been introduced by XCOMMONS-2653 (15.2RC1).
 
cid:jira-generated-image-avatar-061b17ea-1690-4cc6-a875-56470ec77647 Changes by Vincent Massol on 14/Nov/24 16:36
 
Summary: @RunWith - based junit 4 tests are not executed anymore
 
 

1 comment

 
cid:jira-generated-image-avatar-f2fada18-ddf4-49f3-86f7-5c3ec4a9654c Thomas Mortagne on 14/Nov/24 16:29
 

It seems to work as expected when adding org.apache.maven.surefire:surefire-junit47 (which force using a provided designed for Junit 4 tests) but for some strange reason, it seems to break any test which relying on something located in xwiki-commons-tool-test-simple with error that suggests it's not put in the classloader at all.