Comments (8)
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.
Hi @rhowk , I have pushed the v6.3.0
on npm
.
Feel free to give any feedback.
Thanks
from testcafe-reporter-cucumber-json.
That would be fantastic! Love to be your guinea pig on this.
from testcafe-reporter-cucumber-json.
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.
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
- you can now set the
from testcafe-reporter-cucumber-json.
@hdorgeval we will test it out and get right back to you! Thanks so much!
from testcafe-reporter-cucumber-json.
@hdorgeval Worked like a charm. Thanks so much!
from testcafe-reporter-cucumber-json.
Hi @mattylips77, thanks for your feedback. It's always appreciated :)
from testcafe-reporter-cucumber-json.
Related Issues (20)
- Unable to generate report while running from Docker Container
- cannot get the Platform name
- Report is not getting the OS and Browser(name & version) information. HOT 11
- no difference between "chrome" and "chrome:emulation:device=iphone X" HOT 3
- Add LICENSE to repo HOT 1
- Cannot get Platform Name - Linux
- Provider an API to pass parameters HOT 3
- JSON folder and file not created HOT 3
- Issue with Scenario level tags HOT 1
- Logger improvement possibility HOT 2
- When use LambdaTest, the platform is missing HOT 4
- Feature file steps not visible in html report HOT 15
- Support for embeddings in report
- vulnerability in dependancy HOT 2
- All tests succeed but they actually fail HOT 1
- Error: Cannot find module 'node:path'
- can not get Platform name on macOS Ventura 13.1
- This Report is not showing any data with Gherkin-testcafe version 7.0.0 with Cucumber version>8.
- Multiplicated Elements/Scenarios of the Feature in the json file while executing Test Cafe with --concurrency > 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testcafe-reporter-cucumber-json.