question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tried 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sergueyarellanocommented, Oct 29, 2020

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

πŸ˜‰

1reaction
aslakhellesoycommented, Oct 22, 2020

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:

cucumber-js .... 2> cucumber.log
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found