cucumber / godog

Cucumber for golang
MIT License
2.21k stars 249 forks source link

Why Getting total scenarios as 6 while I am having total 5 scenarios #581

Closed ksoniAngel closed 6 months ago

ksoniAngel commented 6 months ago
Screenshot 2023-10-23 at 11 11 26 AM

I am running test as go test -v

getting total 5 scenrioes in which 2 passed and 4 fails.

Expected result := 5 (1 passed, 4 failed)

roskee commented 6 months ago

Hi, what was the version of godg you were using?

ksoniAngel commented 6 months ago

@roskee I am running this test by using go test -v for 2 weeks

I installed godog today, It's version is 0.13.0

But this problem is faing since two weeks, some time I got correct number of pass or failed test cases and some time I not.

If any other info required please let me know

roskee commented 6 months ago

@ksoniAngel I looked into it and it is a bug. I have created a pull request to fix it. But for now, know that it is the passed count that is incorrect. In your case what you expected was indeed the correct result that should have been shown. Thanks for pointing it out :pray: