cucumber / godog

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

Is this feature file in godog/_examples/godogs running sequencially ? #580

Closed ksoniAngel closed 7 months ago

ksoniAngel commented 7 months ago

👓 What did you see?

There are two feature files in that path described in that question:-

one of is that with this content :=

  Feature: do not eat godogs
  In order to be fit
  As a well-fed gopher
  I need to be able to avoid godogs

  Scenario: Eat 0 out of 12
    Given there are 12 godogs
    When I eat 0
    Then there should be 12 remaining

  Scenario: Eat 0 out of 0
    Given there are 0 godogs
    When I eat 0
    Then there should be none remaining

for the above file after running that output is not in sequencial manner.

✅ What did you expect to see?

Screenshot 2023-10-19 at 2 49 01 PM

I am expecting that in above picture, feature files should be printing sequencially

📦 Which tool/library version are you using?

Golang 1.20

🔬 How could we reproduce it?

go to this path godog/_examples/godogs run "go test -v" and see the feature files order

ksoniAngel commented 7 months ago

Can anyone tell is the steps given in terminal , their order is correct or not ??? Because I am assuming what ever step I am seeing in terminal, in the same manner code will be executed. So I want to confirm about that.

ksoniAngel commented 7 months ago

concurreny = 4 was set that is why order was not sequencial, I changed to concurreny = 0 , now it is comming sequencially.