Skip to content

[JUnit 5+] @RepeatedTest runs more times than required #771

@nlisker

Description

@nlisker

When running a @RepeatedTest, Arquillian runs it for multiplicities of the specified value:
2 -> 4
3 -> 9
4 -> 16

Any simple class will show the issue

@ExtendWith(ArquillianExtension.class)
public class ArqSuitTest {

		@Deployment
		public static WebArchive createDeployment() {
			return ShrinkWrap.create(WebArchive.class, "1.war");
		}

	@RepeatedTest(3)
	void a() {
		System.out.println("a");
	}

will print something like

<start test>
a
a
a
<start test>
a
a
a
<start test>
a
a
a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions