Brian Okken

Python Test Podcast - Test Case Design using Given-When-Then from BDD (PT010) - Focus your thinking while writing the test

Add a comment

Replies

Best
Brian Okken
Designing your test methods using a simple structure such as given-when-then will help you: - Communicate the purpose of your test more clearly - Focus your thinking while writing the test - Make test writing faster - Make it easier to re-use parts of your test - Highlight the assumptions you are making about the test preconditions - Highlight what outcomes you are expecting and testing against.