Replies: 2 comments
-
|
If you don't actively change the
Yes, as long as the subtest is using the |
Beta Was this translation helpful? Give feedback.
-
|
To add to what hemflit said, you can absolutely mix For The practical tradeoff:
Mixing both is fine, just be aware of which lifecycle hooks you're opting out of when you use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've got a bunch of code I think could benefit from using the suite package, but I loath updating everything that's currently using
assert.Equal()/require.NoError(etc) tosuite.Equal, orsuite.Require().NoError().Another case I have is I already had some reuse going on with some helper funcs that just took a
testing.Tand calledt.Run(), and like the UX oft.Runmore thansuite.Run, and wondering if I can dot := suite.T(); t.Run(...)instead?Are there any trade-offs to be concerned with by not using the suite methods, and only using the suite to handle common test setup and such?
Beta Was this translation helpful? Give feedback.
All reactions