Relying on external resources. How many times have we seen a "testing database" being created and destroyed during the tests execution?
Correct me if I am wrong, but I think if the test is spinning up databases and making real writes and reads it would have been integration tests, not unit tests.
I would also add "mocking critical inputs" into the list. That prevents the tests from having any values, since we're asserting what we ourselves mock in the first place.
Correct me if I am wrong, but I think if the test is spinning up databases and making real writes and reads it would have been integration tests, not unit tests.
That is completely correct, that would be an integration test, not a unit test.
As for the mocking critical inputs, could you provide an example? I don't think I'm following.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Correct me if I am wrong, but I think if the test is spinning up databases and making real writes and reads it would have been integration tests, not unit tests.
I would also add "mocking critical inputs" into the list. That prevents the tests from having any values, since we're asserting what we ourselves mock in the first place.
That is completely correct, that would be an integration test, not a unit test.
As for the mocking critical inputs, could you provide an example? I don't think I'm following.