diff --git a/functional-tests/specs/duplicate_scenario_headings.spec b/functional-tests/specs/duplicate_scenario_headings.spec index 6ac257d..2524724 100644 --- a/functional-tests/specs/duplicate_scenario_headings.spec +++ b/functional-tests/specs/duplicate_scenario_headings.spec @@ -30,3 +30,22 @@ chance of duplicate spec headings. * Output contains * Output contains +## Republishing after fixing the duplicate spec headings or directory names works fine + +* Publish specs to Confluence: + + |heading| + |-------| + |same | + |same | + +* Output contains "Failed: 2 specs have the same heading" + +* Publish specs to Confluence: + + |heading | + |-------------| + |same same | + |but different| + +* Output contains "Success" diff --git a/internal/confluence/publisher.go b/internal/confluence/publisher.go index 832dcea..2ea8c4e 100644 --- a/internal/confluence/publisher.go +++ b/internal/confluence/publisher.go @@ -65,7 +65,9 @@ func (p *Publisher) Publish(specPaths []string) { } if err != nil { + p.space.updateLastPublished() //nolint:errcheck,gosec p.printFailureMessage(err) + return } diff --git a/plugin.json b/plugin.json index 1319cdf..9ce1201 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id": "confluence", - "version": "0.10.1", + "version": "0.10.2", "name": "Confluence", "description": "Publishes Gauge specifications to Confluence", "install": {