-
Notifications
You must be signed in to change notification settings - Fork 2
Possible Get Json Report From CucumberJs Post Test Run #7
Comments
Maybe this module https://www.npmjs.com/package/testcafe-reporter-cucumber-json can help with this issue? |
Hey @bhreinb! I'm sorry, but currently, this is not supported. I will evaluate the possibility to add support for this next week. |
Hey that's super. Let me know if I can help. Btw when do you plan to release version 2 if you don't mind me asking? |
There is no plan yet. I want to rework the implementation for version 2, but in the upcoming weeks, I do not have the time so do it. |
Any updates about getting json report in cucumber format ? |
I'm sorry, there has been no progress so far. |
Hi @Lukas-Kullmann , excuse me for disturbing you, do u have any updates under this topic? |
No, there have not been any updates on this topic. |
I use this as a work-around const cucumber = require('cucumber');
function Given(pattern, callback) {
cucumber.Given(pattern, async (p1, p2, p3, p4) => {
console.log(' Given ' + pattern);
await callback(p1, p2, p3, p4);
});
}
function When(pattern, callback) {
cucumber.When(pattern, async (p1, p2, p3, p4) => {
console.log(' When ' + pattern);
await callback(p1, p2, p3, p4);
});
}
function Then(pattern, callback) {
cucumber.Then(pattern, async (p1, p2, p3, p4) => {
console.log(' Then ' + pattern);
await callback(p1, p2, p3, p4);
});
}
module.exports = {
Given,
When,
Then
}; |
@christoph-daehne your solution works, thinking about a neat way of turning it off/on, since it clutter up the console. Still, this is amazing and makes my life so much easier when I am trying to figure out: Where the #@%@#! did it break! |
Hi @dthisner here is how I turn on/off logs.
|
Hi there! https://github.com/alexej-strelzow/testcafe-cucumber-typescript My solution does not support concurrency and live-mode, but does reporting (incl. screenshots) well and I am thinking to maybe switch to yours in future... Unfortunately I did not have the time yet to play around with it, so I don't know where my project could contribute. Please let me know what you think and if you have any questions. |
Hi there,
I checked out your project. Super work btw 👍. I want to use testcafe but ideally I want to use it with Gherkin as it's good to present to the business how folk test. As you know DevExpress at this point in time don't support Cucumber/Gherkin hence I came across your project.
I notice you support pretty much all Testcafe functionality plus most Gherkin functionality. As Cucumber is been used to run the tests I don't see a way though of getting the JSON report that gets generated at the end of the test run. That JSON is very useful as it can be sent to other modules for reporting (for example https://github.com/jenkinsci/cucumber-reports-plugin)
Is that something that is supported out of the box at this point in time or not? Btw when is version 2.0 of this library coming? Many thanks for any help with any of the above.
The text was updated successfully, but these errors were encountered: