See Michael Feathers’ definition
A test is not a unit test if:
- It talks to the database
- It communicates across the network
- It touches the file system
- It can’t run at the same time as any of your other unit tests
- You have to do special things to your environment (such as editing
config files) to run it.
Related Contents:
- What is Mocking?
- What does “DAMP not DRY” mean when talking about unit tests?
- Is Unit Testing worth the effort? [closed]
- What’s the difference between faking, mocking, and stubbing?
- What is the difference between integration and unit tests?
- How deep are your unit tests?
- What Makes a Good Unit Test? [closed]
- What’s the difference between unit tests and integration tests? [duplicate]
- What is the difference between unit tests and functional tests?
- How to run only one unit test class using Gradle
- What is unit testing? [closed]
- What is the purpose of mock objects?
- Should one test internal implementation, or only test public behaviour?
- What is unit testing and how do you do it? [duplicate]
- Unit test naming best practices [closed]
- How to start working with GTest and CMake
- Should Private/Protected methods be under unit test? [closed]
- To test a custom validation angularjs directive
- Should unit tests be written for getter and setters?
- What are the differences between unit tests, integration tests, smoke tests, and regression tests? [closed]
- How do I unit-test saving file to the disk?
- How to RowTest with MSTest?
- Unit testing with singletons
- Visual Studio 2015 or 2017 does not discover unit tests
- Unit Tests not discovered in Visual Studio 2017
- How to terminate a program when it crashes? (which should just fail a unit test instead of getting stuck forever)
- Why is the xUnit Runner not finding my tests
- How does mockito when() invocation work?
- Any suggestions for testing extjs code in a browser, preferably with selenium?
- How to Unit Test React-Redux Connected Components?
- Unit testing Anti-patterns catalogue
- Mocking vs. Spying in mocking frameworks
- How to test my servlet using JUnit
- Mocking $modal in AngularJS unit tests
- Is it bad practice to have more than one assertion in a unit test? [closed]
- Does Selenium support headless browser testing?
- Configuring IntelliJ IDEA for unit testing with JUnit
- How to test Spring Data repositories?
- What is the best way to unit-test SLF4J log messages?
- Junit5 mock a static method
- How to unit test a Go Gin handler function?
- Run JUnit tests with SBT
- Proper package naming for testing with the Go language
- How can I unit test a GUI?
- Is duplicated code more tolerable in unit tests?
- Any way to test EventEmitter in Angular2?
- Example invalid utf8 string?
- How to unit test a component that depends on parameters from ActivatedRoute?
- Is there an easy way to stub out time.Now() globally during test?
- Why should unit tests test only one thing?