Throw a line of code into many codebases and it’s positive to hit a number of testing frameworks. There isn’t any scarcity of frameworks for testing, every with their specific spin and set of conventions, however that glut just isn’t at all times matched by a transparent imaginative and prescient of how one can construction and use checks circumstances. A testing framework is a automobile, however you continue to must know how one can drive.
The pc science basic, Construction and Interpretation of Pc Applications, factors out that “packages have to be written for folks to learn, and solely by the way for machines to execute”. The identical is true of take a look at code. This presentation takes a deep dive into unit testing, taking a look at examples and counterexamples throughout a variety of languages and frameworks, from naming to nesting, exploring the advantages of data-driven testing, the trade-offs between example-based and property-based testing, how one can get probably the most out of the frequent given-when-then chorus and understanding how far to observe it.
Video producer: https://gotoams.nl/