question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReRun formatter runs all testcases after 4.2.2 release

See original GitHub issue

Summary

ReRun runnner runs all testcases after 4.2.2 release

Expected Behavior

ReRun runner should only rerun failed testcases.

Current Behavior

ReRun test runner runs every testcase. This problem exists after 4.2.2

Parse rerun file in RuntimeOptions #1529

Steps to Reproduce (for bugs)

Create a Testng runner to create a rerun output file

@CucumberOptions(plugin = { "json:target/cucumber-parallel/cucumber-report.json", "html:target", "rerun:target/failed_scenarios.feature"}
        , extraGlue = {"com.xxx.base.cucumber"}
        , monochrome = true
        , strict = true)

public class HTFCucumberBaseTests extends AbstractTestNGCucumberTests {

    @Override
    @DataProvider(parallel = true)
    public Object[][] scenarios() {
        return super.scenarios();
    }
}

Create a Testng runner to re run the failed testcases.

@CucumberOptions(plugin = { "json:target/cucumber-parallel/cucumber-rerun-report.json", "html:target/feature-rerun"}
        , features = "@target/failed_scenarios.feature"
        , extraGlue = {"com.xxxx.base.cucumber"}
        , monochrome = true
        , strict = true)

public class CucumberReRunTests extends AbstractTestNGCucumberTests {

}

Context & Motivation

Your Environment

  • Version used:
  • Operating System and version:
  • Link to your project:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
abhishek8908commented, Mar 8, 2019

@mpkorstanje this issue is not reproducible in version 4.2.5+

0reactions
lock[bot]commented, Mar 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rerun falied test cases for cucumber jvm parallel
I have created test cases in cucumber with selenium. I am using parallel execution to run my test cases. Below is my pom.xml...
Read more >
Technical Difficulties with Rerun.txt tests - Google Groups
I am having some issues using the rerun.txt as input to my maven tests. cucumberTest.java: ... 1) mvm clean test #[Runs tests with...
Read more >
Version 3.1.1 - Robot Framework User Guide
The test data is in simple, easy-to-edit tabular format. When Robot Framework is started, it processes the data, executes test cases and generates...
Read more >
pytest Documentation - Read the Docs
The [100%] refers to the overall progress of running all test cases. After it finishes, pytest then shows a failure report.
Read more >
Diagnosing and Resolving Problems - Oracle Help Center
Optionally run additional health checks or other diagnostics. For SQL-related errors, optionally invoke the SQL Test Case Builder, which gathers all required ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found