Category Archives: Patterns

Best practice for nomenclature and structure of Unit- and Integration Tests

There is a feasible approach how to structure and name Unit- and Integration Tests:
Imagine that you have a Class (named C) with a Method (named M) in a folder (named F) in your development structure. Create the structure with a Test Class (named TC) and a Test Method (named TM) in a folder (named TF) in your test structure on the level of Class in Dev.
Name TF “Given_C”, TC “When_M” and TM “With_<Your Test Parameters>_<Your expected result>”. This┬ábest practice works analogously with a Service for a UI or Test Agent.

DomainModel_NomenclatureTesting