Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description to Ginkgo test expectations #482

Open
peanball opened this issue Jul 3, 2023 · 0 comments
Open

Add description to Ginkgo test expectations #482

peanball opened this issue Jul 3, 2023 · 0 comments

Comments

@peanball
Copy link
Contributor

peanball commented Jul 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant