👉 MoTaCon 2027 👈
Learn
Events
Chapters
Insights
Sessions
Certs
Observatory
Moments
Join
Search
*
Sign In
Cameron Fairburn
Cameron Fairburn
Follow
Award Star
🎂 MoTaBirthday | June 27, 2023
1
star
3
badges
0
certs
1
follower
1
following
Glossary Terms
(1)
Hermetic Testing
Hermetic testing to me is a method for ensuring that tests run consistently and offer a consistent value. If we apply the idea of Hermetic Testing to only the data element of a tests requirements, we can understand what this means. Imagine there are three ways to handle data in our testing: Our tests can create their own data and then test that data Our tests could expect data to already exist, and choose something valid at random Our tests can expect specific data to already exist, and use the exact same data everytime they run The third bullet point is how I imagine Hermetic Testing. Test-001 expects [item]to already exist, it navigates directly to the UID of [item] and performs the test. This is a more scientific method of testing when compared to 1. and 2., because they inherently have risk built into them. In approach 1, if the data creation step fails, the test fails without even reaching the point it’s meant to test. In approach 2, if the assumed data isn’t present or changes unexpectedly, the test again fails for reasons unrelated to its actual assertions. In approach 3 (Hermetic Testing), the framework pre-seeds the required data in a known, stable state. As a result, tests should always run the same and in theoryonly fail when there’s a real bug. This, to me, is the purpose of Hermetic Testing: to build a regression pack that executes exactly the same way, every single time, so that when a test fails, we can trust that something really broke.
💡What's next? View ways to contribute
Badges
(3)
Stars
(1)
⭐️ Earn more stars ⭐️
Activity
(5)
Est 2023
This badge is awarded to those that joined the MoTaverse in 2023.
Badge Award
2 months ago
Glossary Contributor
This badge is awarded to members who contribute a new term or an alternative definition to the software testing glossary.
Badge Award
about 1 year ago
Added a definition
Hermetic Testing
Community Star
about 1 year ago
Hermetic Testing
Definitions of Hermetic Testing
Glossary Term
about 1 year ago
Club Explorer
This badge is awarded to members who have signed up as a Club member.
Badge Award
over 3 years ago
Contributions
(1)
Glossary Term (1)
💡What's next? View ways to contribute
Subscribe to our newsletter
Subscribe