Skip to content

Remove step number from Progress Formatter #671

@skiz

Description

@skiz

👓 What did you see?

When running numerous scenarios and using the progress formatter,
When the step is a mod of 70, the step numbers are printed on the progress line and a line break is introduced.
This seems to be only useful for debugging the formatter itself and should likely be removed.
Additionally, there should be a line break after each scenario is completed.

Current output:

.......=== RUN   TestFeatures/MyFeature1
........... 420
.=== RUN   TestFeatures/MyFeature2
........................=== RUN   TestFeatures/MyFeature3

Offending Line/Area:

if math.Mod(float64(*f.Steps), float64(f.StepsPerRow)) == 0 {

✅ What did you expect to see?

Expected output:

=== RUN   TestFeatures/MyFeature1
...........
=== RUN   TestFeatures/MyFeature2
........................
=== RUN   TestFeatures/MyFeature3

In the case of more than 70 steps per Scenario the output should expect to look like:

=== RUN   TestFeatures/MyFeature1
............................................................
............................................................
...........................................
=== RUN   TestFeatures/MyFeature2
............................................................
.........

📦 Which tool/library version are you using?

Golang Godog Main Branch

🔬 How could we reproduce it?

No response

📚 Any additional context?

I'll tackle this myself if this makes sense to others.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions