Code Monkey home page Code Monkey logo

Comments (6)

alexplischke avatar alexplischke commented on June 2, 2024 1

Actually, I did end up finding a viable workaround!

Try this:

const config: PlaywrightTestConfig = {
  reporter: [['./testrail/reporter/testrail.reporter.ts']],
}

from saucectl-run-action.

jpaxtonrs avatar jpaxtonrs commented on June 2, 2024 1

Ah ok, makes sense.
Maybe adding a warning/info message about that here to avoid explaining it again: https://docs.saucelabs.com/web-apps/automated-testing/playwright/yaml/#reporters

Thanks!

from saucectl-run-action.

alexplischke avatar alexplischke commented on June 2, 2024

Indeed, we set the reporters to list, junit and our own internal reporter, thereby overriding your reporter settings. As it stands, I don't see a way to work around this limitation. I'll create a feature request ticket internally 👍

from saucectl-run-action.

jpaxtonrs avatar jpaxtonrs commented on June 2, 2024

Thank you! Looking forward to the resolution!

from saucectl-run-action.

jpaxtonrs avatar jpaxtonrs commented on June 2, 2024

The Custom Reporter is working as expected when the Playwright tests run in SauceLabs using your workaround!

I could take a guess on why this is working; however, it would be just a guess.
How come providing an Array<Array<string>> for the reporter in the configuration works over providing a string for the reporter?

from saucectl-run-action.

alexplischke avatar alexplischke commented on June 2, 2024

There's a logic in place that concats arrays together, but if the value is a primitive, and we have an explicit setting for it, ours takes precedence (this is so we can override certain user settings so that playwright functions or integrates better with our cloud).

from saucectl-run-action.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.