528
So, how's the job search going?
(lemmy.world)
General rules:
Exceptions may be made at the discretion of the mods.
These are for a mix of end to end and integration tests.
I mostly do unit tests as a dev, so our tests are simple enough that they don't benefit from more structure than being grouped by suite. E.g.:
These don't have long flows, so there's no benefit to documenting steps (they usually have one step).
My complaint about cucumber/gherkin isn't with documenting steps, it's with managing them in separate files. We have a
Service.feature
file that documents the scenario and theServiceTest.java
that documents the steps. I don't see the point in having those be separate files, especially since the only people defining inputs and scenarios are the devs (dedicated QA in our case). We occasionally have our BE devs help write a few tests, and every time it's a struggle for them to figure out where everything is. It just feels over-engineered.In unit tests, we parameterize our tests just like with cucumber, we just do so in the code. E.g. in Python:
I would much prefer something like that in our end to end and integration tests.