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

Docs: hourglass model in test principle #827

Merged
merged 1 commit into from
Jul 2, 2022

Conversation

charlie0129
Copy link
Member

Signed-off-by: Charlie Chiang charlie_c_0129@outlook.com

I think hourglass model represents a large number of unit + e2e test, but no integration test better.

Reference: https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html

Inverted pyramid/ice cream cone. The team relies primarily on end-to-end tests, using few integration tests and even fewer unit tests.
Hourglass. The team starts with a lot of unit tests, then uses end-to-end tests where integration tests should be used. The hourglass has many unit tests at the bottom and many end-to-end tests at the top, but few integration tests in the middle.

Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants