We have multiple Describe suites, that live in separate files in the same project. For each one of them we have added a BeforeEach that helps us skip tests if they have previously run and were successful (a way to speed up our testing pipelines).
// this is mandatory when checking skipped test
// the spec hash is helpful to debug and manually skip tests
BeforeEach(func(specContext SpecContext) {
e2eSuite.SetupSpec(specContext, specContext.SpecReport(), true)
})
We have the collaboration problem that some engineers write new files and forget to include this block, and we have multiple projects like these. So I am wondering if there is a way to run one BEFORE EACH for all Its within the same project, so we can write it only once..
We have multiple Describe suites, that live in separate files in the same project. For each one of them we have added a BeforeEach that helps us skip tests if they have previously run and were successful (a way to speed up our testing pipelines).
We have the collaboration problem that some engineers write new files and forget to include this block, and we have multiple projects like these. So I am wondering if there is a way to run one
BEFORE EACHfor all Its within the same project, so we can write it only once..