What would you call a test that is similar to a unit test, except it actually modifies a file, directory, or database data? It is similar to a unit test in that it does test a single method of a single class as opposed to testing an entire feature of a program or a scenario a user would run through. It does not use mocks or stubs like a unit test would.
What are unit tests called when they change data instead of relying on mocks or stubs?
testing
That would be an integration test. N.B. you should be doing very few of these (if you do any at all).Hint: even if you don't call them integration tests, they're certainly not unit tests.