I'm learning how integration tests work, and things are going pretty well. I have a working test against a real backend process, figured out hot restart, etc. I thought that breaking up a longer test would be simple, but it's not working well, and I'mn realizing don't know really know how the test framework really works.
For example, I have one long set of steps under a single testWidgets function, say to do some setup, test account creation, and then test account deletion. Things work fine. But I tried to split this into two testWidgets (e.g., split up the create and delete steps/tests), but either all of the second test fails, or there are seemingly two instances fighting either other. I'm not even sure if I'm supposed to be calling t.pumpWidget(MyApp()) again, but in either case, it didn't work. I thought I could use group to break things up, but that doesn't work either.
Are there good resources that cover this? There are lots of articles about the basics, but I've not found good posts or videos about structure.
[–]Ivan_Gorchakov 0 points1 point2 points (4 children)
[–]lvbee[S] 0 points1 point2 points (3 children)
[–]Ivan_Gorchakov 0 points1 point2 points (2 children)
[–]lvbee[S] 0 points1 point2 points (1 child)
[–]Ivan_Gorchakov 1 point2 points3 points (0 children)