cloudfoundry / haproxy-boshrelease

A BOSH release for haproxy (based on cf-release's haproxy job)
Apache License 2.0
37 stars 81 forks source link

Add description to Ginkgo test expectations #482

Open peanball opened 1 year ago

peanball commented 1 year ago

haproxy-boshrelease uses ginkgo for its acceptance tests.

Ginkgo allows adding an optional description to the Expect() statement chain, e.g.

Expect(err).ShouldNot(HaveOccurred(), "no error when starting the bosh deployment")

This helps quickly identify issues in acceptance tests without having to go to the code line, because without the description the logs say "error should not have occurred". Without context it's hard to know, which error that was exactly.