![]() ![]() ![]() This should have a very narrow and well defined scope. Unit test: Specify and test one point of the contract of single method of a class.Here is what it has to say about Unit Tests and Integration Tests, specifically: So what constitutes a unit test, and what constitutes an integration test? What about other kinds of tests beyond these two? There’s a decent StackOverflow answer related to this topic, which lists several kinds of tests and their definitions. ReSharper and most other add-in test runners follow the same convention – if you ran run it as a test on your code, it’s probably going to be referred to as a Unit Test. For instance, Visual Studio 2010 starts every new Test Project with a class called UnitTest1 and lets you add a new Unit Test, but nowhere does it mention Integration Tests, Acceptance Tests, Smoke Tests, etc, as you use the same code templates to create each of these. The tools don’t really help much here, since the various test runner frameworks all call themselves unit test frameworks, and the various test runners themselves almost universally refer to the tests they run as “unit tests” whether they are or not. Many developers are fairly new to testing, and tend to call any tests of their code “unit tests” even when they’re dealing with something substantially larger than a unit. There remains a fair bit of confusion about what constitutes which kind of test. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |