Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cli reporter not working for failing test when using retry() in scenario level #3283

Closed
AramSol opened this issue Apr 7, 2022 · 3 comments · Fixed by #4020
Closed

cli reporter not working for failing test when using retry() in scenario level #3283

AramSol opened this issue Apr 7, 2022 · 3 comments · Fixed by #4020

Comments

@AramSol
Copy link

AramSol commented Apr 7, 2022

What are you trying to achieve?

we try to get cli report about failing scenario [its only work without retry()]
image

What do you get instead?

as soon as i add the retry Option, no cli report will be logged on console for failing scenarios.
image

image

Details

  • CodeceptJS version:3.3.0
  • NodeJS Version:16.14.2
  • Operating System:windows 10
  • webdriverio

config

const settings = {
    window: {
        width: 1920,
        height: 1080
    }
};

exports.config = {
    tests: "./*/**/*.js",
    helpers: {
        WebDriver: {
            url: "http://localhost:8070",
            browser: "chrome",
            windowSize: `${settings.window.width}x${settings.window.height}`,
            waitForTimeout: 20000,
            disableScreenshots: true,
            desiredCapabilities: {
                chromeOptions: {
                    binary: require("chromium").path,
                    args: [
                        "--headless",
                        "--lang=en",
                        "--log-level=3",
                        "--disable-gpu",
                        "--disable-dev-shm-usage",
                        "--no-sandbox",
                        `--window-size=${settings.window.width},${settings.window.height}`
                    ]
                }
            }
        },
        myHelper: {
            require: "./helper.js",
        },
    },
    include: {
        I: "./custom-steps.js"
    },
    multiple: {
        parallel: {
            chunks: 10
        }
    },
    output: "../../../.output-ui-tests"
};
@AramSol AramSol changed the title CLI reporter not working for failing test when using retry() in scenario level cli reporter not working for failing test when using retry() in scenario level Apr 7, 2022
@AramSol
Copy link
Author

AramSol commented Dec 15, 2023

hi @kobenguyent ,

The problem regarding the reporting of failed tests in the scenario has been resolved. However, when attempting to execute the UI test with the "--multiple" parameter to run all UI tests, the steps of the failed test are not displayed as previously noted in this reported issue

@kobenguyent
Copy link
Collaborator

May you try this retry configuration

https://codecept.io/basics/#retry-configuration

@AramSol
Copy link
Author

AramSol commented Jan 11, 2024

@kobenguyent , we still face the same issue.
we use --multiple parameter

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants