"Run if" extension for JUnit

JUnit extension to conditionally run tests based on the results of other tests

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

pt.ulusofona.deisi
ArtifactId

ArtifactId

junit-extension-run-if
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

"Run if" extension for JUnit
JUnit extension to conditionally run tests based on the results of other tests
Project URL

Project URL

https://github.com/drop-project-edu/junit-extension-run-if
Project Organization

Project Organization

Pedro Alves
Source Code Management

Source Code Management

https://github.com/drop-project-edu/junit-extension-run-if

Download junit-extension-run-if

How to add to project

<!-- https://jarcasting.com/artifacts/pt.ulusofona.deisi/junit-extension-run-if/ -->
<dependency>
    <groupId>pt.ulusofona.deisi</groupId>
    <artifactId>junit-extension-run-if</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/pt.ulusofona.deisi/junit-extension-run-if/
implementation 'pt.ulusofona.deisi:junit-extension-run-if:0.1.0'
// https://jarcasting.com/artifacts/pt.ulusofona.deisi/junit-extension-run-if/
implementation ("pt.ulusofona.deisi:junit-extension-run-if:0.1.0")
'pt.ulusofona.deisi:junit-extension-run-if:jar:0.1.0'
<dependency org="pt.ulusofona.deisi" name="junit-extension-run-if" rev="0.1.0">
  <artifact name="junit-extension-run-if" type="jar" />
</dependency>
@Grapes(
@Grab(group='pt.ulusofona.deisi', module='junit-extension-run-if', version='0.1.0')
)
libraryDependencies += "pt.ulusofona.deisi" % "junit-extension-run-if" % "0.1.0"
[pt.ulusofona.deisi/junit-extension-run-if "0.1.0"]

Dependencies

provided (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

"Run if" extension for JUnit

JUnit extension to conditionally run tests based on the results of other tests

How to install

Include the following dependency on your pom file:

<dependency>
    <groupId>pt.ulusofona.deisi</groupId>
    <artifactId>junit-extension-run-if</artifactId>
    <version>0.1.0</version>
</dependency>

How to use

@RunWith(ConditionalRunner.class)
public class TestClass1 {

    @Test
    public void test01() {
        ...
    }

    @Test
    @RunIf({"test01"})
    public void test02() {
        // this test only runs if test01 passes
    }
    
    @Test
    @RunIf({"test01", "test02"})
    public void test03() {
        // this test only runs if test01 and test02 passes
    }
}
pt.ulusofona.deisi

Versions

Version
0.1.0