Giter VIP home page Giter VIP logo

Comments (8)

hdorgeval avatar hdorgeval commented on May 20, 2024 2

Hi @rhowk , actually you cannot setup correctly the reporter-json-folder, the reporter-app-name via runner.reporter.
To do so, I need to modify the code in order to read those infos from environment variables:

process.env['--reporter-json-folder'] = join('reports', 'batch${jobnumber}');
process.env['--reporter-app-name'] = 'foo';
process.env['--reporter-app-version']= 'bar;
 // then create and start the runner

Do you think it could be a solution for you?
If yes, I will update the code and publish a new version.

Thanks

from testcafe-reporter-cucumber-json.

hdorgeval avatar hdorgeval commented on May 20, 2024 1

Hi @rhowk , I have pushed the v6.3.0 on npm.
Feel free to give any feedback.

Thanks

from testcafe-reporter-cucumber-json.

rhowk avatar rhowk commented on May 20, 2024

That would be fantastic! Love to be your guinea pig on this.

from testcafe-reporter-cucumber-json.

rhowk avatar rhowk commented on May 20, 2024

so I added :
process.env.reportFolder = join('reports', batch${jobnumber}'); process.env.appName = '${jobnumber}-${name}';

to runner .js and when I console log the process.env I see:
LC_CTYPE: 'en_US.UTF-8', SAUCE_ACCESS_KEY: '', NVM_BIN: '/Users/<myuser>/.nvm/versions/node/v14.17.0/bin', SNC_LIB: '/Applications/Secure Login Client.app/Contents/MacOS/lib/libsapcrypto.dylib', DEBUG: 'false', reportFolder: 'reports/batch720211836', appName: '720211836-domains.us.dabrand.pc'
at the end but still not writing json to correct place or even writing json at all for the reports.

from testcafe-reporter-cucumber-json.

hdorgeval avatar hdorgeval commented on May 20, 2024

Hi @rhowk, you still need to wait until I push a new release.
I plan the following change:

[6.3.0] - 2021-07-21

Added

  • feat(reporter): be able to set reporter options through environment variables.

    • you can now set the --reporter-json-folder, --reporter-app-name and --reporter-app-version options as variable environments:
    process.env['--reporter-json-folder'] = 'my-custom-folder';
    process.env['--reporter-app-name'] = 'My App';
    process.env['--reporter-app-version'] = 'x.y.z';
    // then start tests via the TestCafé Runner

from testcafe-reporter-cucumber-json.

rhowk avatar rhowk commented on May 20, 2024

@hdorgeval we will test it out and get right back to you! Thanks so much!

from testcafe-reporter-cucumber-json.

mattylips77 avatar mattylips77 commented on May 20, 2024

@hdorgeval Worked like a charm. Thanks so much!

from testcafe-reporter-cucumber-json.

hdorgeval avatar hdorgeval commented on May 20, 2024

Hi @mattylips77, thanks for your feedback. It's always appreciated :)

from testcafe-reporter-cucumber-json.

Related Issues (20)

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.