https://github.com/onsi/headandshoulders
helps keep your tests free of flakes
https://github.com/onsi/headandshoulders
Last synced: 10 months ago
JSON representation
helps keep your tests free of flakes
- Host: GitHub
- URL: https://github.com/onsi/headandshoulders
- Owner: onsi
- License: mit
- Created: 2017-04-18T17:41:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T17:42:42.000Z (about 9 years ago)
- Last Synced: 2025-05-21T03:39:55.135Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# headandshoulders
*helps keep your tests free of flakes*
## usage
``` go
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/xoebus/headandshoulders"
)
var _ = Describe("Usage", func() {
Describe("helps you make sure all flakiness is gone", func() {
RIt("by running repeated tests 3 times by default", func() {
// flaky test...
})
RIt("but optionally many times for those more tricky ones", func() {
// annoyingly not very flaky test...
}, 15)
})
})
```
## faq
> But what if I use the timeout feature of Ginkgo's `It` function?
Tough.