cucumber / cucumber-ruby

Cucumber for Ruby. It's amazing!
https://cucumber.io
MIT License
5.18k stars 1.11k forks source link

Not all results are shown in the Run-window, even as I follow the tutorial #1556

Closed BoWunder closed 3 years ago

BoWunder commented 3 years ago

So I have recently started my journey with Cucumber and Ruby. To get started, I have used the tutorial on guru99.com (https://www.guru99.com/cucumber-tutorials.html). I am aware that the tutorial is for an older version, but I would still expect the same results to be shown in the Run-window.

The Issue: Based on the tutorial, I would expect to see three results; the results of the multiplication, the number scenario 'passed'/'failed', and the number of steps 'passed'/'failed'. Instead, I only get the result of the multiplication. I do not see the number of 'passed'/'failed' 'Scenario'/'Steps' anywhere.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://www.guru99.com/cucumber-installation.html'
  2. Scroll down to 'First Cucumber Script' and follow the tutorial.
  3. Follow instructions to script 'CucumberFirstProject', with feature list and step definition.
  4. Once scripted, Run multiplication.feature
  5. Observe the error in the Run-window (the lack of 'Scenario' and 'Steps' as seen in the "Actual Result" screenshot).

Expected behavior Run-window shows three results: The multiplication result, the number of Scenarios passed or failed, and the number fo steps passed or failed. (See the "Expected Result" screenshot taken from the tutorial)

Context & Motivation As someone new to Cucumber, I rely heavily on the tutorials. Sadly, tutorials does not explain mistakes you've made, issues you can't identify, or changes between versions.

Screenshots If applicable, add screenshots to help explain your problem.

Your Environment

Additional context N/A

Expected result Actual Result
luke-hill commented 3 years ago

This is due to the Teamcity RubyMine formatter, it's nothing to do with either the code, cucumber or possibly even the tutorial site you are using.

We have a 10 minute tutorial for cucumber available on our docs here: https://docs.cucumber.io/docs/guides/10-minute-tutorial/

The issue is the default formatter for RubyMine has changed now. If you just run that scenario from the CLI you will get the output you are looking for