You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My preferred approach is to keep these close together (if you have a large test file, then the definition at the top of the describe block get separated from the actual tests using them. In those cases I use another describe block to keep them scoped smaller, and closer together.
There is no clear preference for any of the solutions you gave. There is a caveat though, of you have another function perform the tests, then and actual test failure will always get a stack trace pointing to that function. Doesn't make a big difference, just adds a bit of cognitive load to the debugging process.
I'm looking to implement a DataProvider model, similar to to TestNG for Java testing. This is what I've done so far:
Then a typical test would look like:
Looking to see if there are any better way of doing this with Busted, or if we can include this in the Busted framework natively.
The text was updated successfully, but these errors were encountered: