Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to specify tests depending on each other #416

Open
marvinhagemeister opened this issue Jun 18, 2021 · 0 comments
Open

Add a way to specify tests depending on each other #416

marvinhagemeister opened this issue Jun 18, 2021 · 0 comments

Comments

@marvinhagemeister
Copy link
Collaborator

Just came across this very interesting article about testing challenges in the interactive programming game Factorio. There the author lays out reasons for why having tests depend on each other makes refactorings easier.

Test A -> tests feature A
Test B -> tests feature B

# No need to run this test if "Test A" or "Test B" fails
Test C -> tests how feature A + B work together

The idea is that one usually has e2e test which are a bit more low level, like test feature A and others which usually exercise multiple features at once and how they work togther. So in that situation it's not useful to run tests which depend on A to work, when A is broken. It's totally fine to just run the tests for A and skip all further tests that depend on feature A to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant