Skip to content

Instantly share code, notes, and snippets.

@zbigniewTomczak
Last active July 29, 2018 16:55
Show Gist options
  • Save zbigniewTomczak/4374975 to your computer and use it in GitHub Desktop.
Save zbigniewTomczak/4374975 to your computer and use it in GitHub Desktop.
Good unit test properties and definition by The art of unit testing Oshevore

Good unit test properties:

  • It should be automated and repeatable.
  • It should be easy to implement.
  • Once it’s written, it should remain for future use.
  • Anyone should be able to run it.
  • It should run at the push of a button.
  • It should run quickly.

Good unit test definition:

A unit test is an automated piece of code that invokes the method or class being tested and then checks some assumptions about the logical behavior of that method or class. A unit test is almost always written using a unit-testing framework. It can be written easily and runs quickly. It’s fully automated, trustworthy, readable, and maintainable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment