Comments (10)
@phisco I think it's a good idea to take a closer look how setup and teardown are put together. I don't see any harm in running them as subtests similar to other steps like "Assess".
from e2e-framework.
Ping @vladimirvivien @harshanarayana given that I had your attention for the other issue 😬
from e2e-framework.
@harshanarayana, do you mean for the names in the features? Teardown and Setup steps can already define a name, which in the case of the Assess steps are used as name for their dedicated sub-test, while here they are just ignored. See here for an example of how we use it.
I would expect each of these steps to be executed in its own sub-test and to be shown as .../Teardown/<NAME_OF_THE_STEP>
for example here:
--- PASS: TestEnvironmentConfigDefault (30.30s)
--- PASS: TestEnvironmentConfigDefault/TestEnvironmentConfigDefault (30.30s)
--- PASS: TestEnvironmentConfigDefault/TestEnvironmentConfigDefault/CreateClaim (13.51s)
--- PASS: TestEnvironmentConfigDefault/TestEnvironmentConfigDefault/MRHasAnnotation (0.51s)
--- PASS: TestEnvironmentConfigDefault/TestEnvironmentConfigDefault/Teardown/DisableAlphaEnvironmentConfig (X.Ys)
or wthout the Teardown
part:
--- PASS: TestEnvironmentConfigDefault/TestEnvironmentConfigDefault/DisableAlphaEnvironmentConfig (X.Ys)
I'd have to check how this would play out with the current way setup teardown steps are handled.
from e2e-framework.
Cool @vladimirvivien, I can give it a look over the holidays and try opening a PR for it!
from e2e-framework.
+1 to this. This will be a very useful change.
from e2e-framework.
@phisco Do you happen to have a possible format for these setup/teardowns in mind in terms of naming them ? If so, please share that here ?
from e2e-framework.
Related Issues (20)
- WithStep level argument, defined `Levels` are private HOT 5
- panic handler hides source of panic HOT 3
- Unused testenv.rnd HOT 4
- re-org Framework package structure to avoid import cycles under tests HOT 4
- Issue template
- error when calling `envfuncs.CreateKindClusterWithConfig` with an empty image
- Release Ticket: `v0.3.0` of `e2e-framework` HOT 7
- After panic recovery and performing of finish steps tests are not marked as failed HOT 2
- A few E2E Conformance test cases have failed on the OpenShift cluster. HOT 3
- `BeforeEachFeature` and `AfterEachFeature` are not skipped even though feature labels indicate so HOT 1
- Inspect kwok tests
- Expose `ko` features as a third-party Envfunc HOT 9
- Failed to create cluster with kind podman HOT 2
- Calling `Config`'s `Client()` in tests running parallel yields a data race HOT 6
- Create Kind Cluster without test Function HOT 6
- Allow adding custom labels and annotations when creating namespace HOT 3
- How to use BeforeEachTest HOT 13
- Ambiguous call to `cfg.Client()` in `CreateClusterWithConfig` HOT 4
- ,
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from e2e-framework.