Cucumber logs
See original GitHub issuetried to search here and the web for this issue, yet i could not find anything helpfulβ¦ Forgive me If I missed somethingβ¦
I use the latest cucumber.js. It works like a charm; all output is logged to the console output.
My question is - can it write the output also to a log file? so it can be published later on?
In my case I use AWS CodeBuild to run cucumber. After it finishes, I would like to publish the report, or at least the URL of the report (see below. BTW the reports is a great new tool!!). If I get the text below on the console and I cannot send it to developers, it is uselessβ¦
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β View your Cucumber Report at: β
β https://reports.cucumber.io/reports/ee50e816-440f-0000-0000-7ee96e40061e β
β β
β This report will self-destruct in 24h. β
β Keep reports forever: https://reports.cucumber.io/profile β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
so how can I make cucumber write this URL to a log-file, so i can send that log-file to developers?
thanks in advance! Ohad
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Reporting - Cucumber Documentation
Cucumber uses reporter plugins to produce reports that contain information about what scenarios have passed or failed. Some plugins are built-in,Β ...
Read more >Cucumber logs with black forest smoked ham | Olymel
Create grooves on the whole length of each cucumber and cut each cucumber into 12 logs approximately 2.5 cm in length (24 in...
Read more >Getting more out of Cucumber logs - Boozang
Using Cucumber to do Behaviour driven development (BDD) is great but sometimes a single bug can have impacts on several tests.
Read more >Logger (Cucumber-JVM: Core 7.10.1 API) - javadoc.io
Log the message at config level. void, debugβ(Throwable throwable, Supplier<String> message). Log message andΒ ...
Read more >Capturing and logging cucumber test results - Stack Overflow
I'm adding logging to a test suite. It uses Ruby, Cucumber and Rspec to run. I've already set up an env.rb to log...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Started a new project today, as always I use cucumber, and to my surprise, I see that I installed an RC version. I was a little reluctant at first, but seeing the
--publish
feature I have to say you guys nailed it. Before that, I had to create my own artifacts in the CI and upload them to an existing storage bucket and what else.Iβm so happy about this, Thanks, people!
ps, Iβm working on some tutorials on
how to BDD, TDD
with cucumber in case somebody wants to check https://github.com/sergueyarellano/tddpracticeπ
Hi @OhadR
Thanks for trying out Cucumber Reports and glad you like it!
Weβre aware that reports are clumsy to use at the moment for the exact reason youβre describing. They get a new URL every time!
Weβre working on fixing this (started today actually!). Soon youβll get a stable URL where all of your reports can be listed. For example
https://reports.cucumber.io/github.com/myorg/myrepo
. On that page youβll see all the reports (probably paginated to show the most recent 20 or so reports).In order for this automated grouping to work you have to publish your reports from CI using your personal token.
The banner is written to
STDERR
so until this is live you can capture the output by redirecting that to a file: