Obscure In-Line Setup

An in-line setup should consist of only the steps and values essential to understanding the test. Essential but irrelevant steps should be encapsulated into helper methods. An obscure in-line setup covers too much setup functionality within the test method. This can hinder developers in seeing the relevant verification steps of the test.

Reference

M. Greiler, A. van Deursen, M.-A. D. Storey, “Automated Detection of Test Fixture Strategies and Smells”. ICST 2013, pp. 322–331.


Test Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.