Jacobvu84 / selenium-vietnam-training-course

Questions Tracking
7 stars 5 forks source link

Rerun failing tests - Junit #65

Open Jacobvu84 opened 5 years ago

Jacobvu84 commented 5 years ago

Add more configuration in serenity.properties

test.retry.count = 2

or Add <rerunFailingTestsCount>2</rerunFailingTestsCount> into the maven-failsafe-plugin with version is 3.0.0-M3 (suggestion)

<plugin>
    <artifactId>maven-failsafe-plugin</artifactId>
    <version>3.0.0-M3</version>
    <configuration>
            <includes>
                <include>**/screenplay/**/*.java</include>
            </includes>
            <systemPropertyVariables>
                <serenity.test.root>${serenity.test.root}</serenity.test.root>
            </systemPropertyVariables>
        <rerunFailingTestsCount>2</rerunFailingTestsCount>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>integration-test</goal>
                <goal>verify</goal>
            </goals>
        </execution>
    </executions>
</plugin>

================ Jacob Vu khóa học Selenium WebDriver online cho cá nhân

Jacobvu84 commented 5 years ago

rerun-failing-tests