Effective Unit Testing by Lasse Koskela

Effective Unit Testing by Lasse Koskela

Author:Lasse Koskela
Language: eng
Format: epub, pdf


The parameterized test pattern The parameterized test pattern is, in essence, a way to remove duplication from data-oriented tests that only differ in small ways.[11] For example, consider a test class where the only difference between its 13 test methods is the simple input and expected output values for the code under test. Let’s say the code takes in an int and returns a String. You could turn this test class into a parameterized test and delegate some of the boilerplate to the test framework itself; you’ll see a concrete example of what this looks like in section 5.8.2.

11 Gerard Meszaros. xUnit Test Patterns: Refactoring Test Code, Addison-Wesley, 2007.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.