Skip to content

Example project for introduction to unit testing on Java

Notifications You must be signed in to change notification settings

narape/better-tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

better-tests

This is a small sample project that can be used to introduce programmers to unit testing with Java. It has the following stuff:

  1. A sequence of branches that goes from no-test to junit feature by feature branches to mockito for mocking to test coverage reporting with jacoco
  2. Many examples of small, focused unit test cases that validate a single feature.
  3. Several examples of stubbing (using the Apollo StubClient)

branches

The correct way to inspect the branches of this projects is as follows:

  1. no-test
  2. junit-basics
  3. junit-basics-2-before
  4. junit-basics-3-exceptions
  5. junit-basics-4-hamcrest
  6. mockito-basics
  7. test-coverage

About

Example project for introduction to unit testing on Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.4%
  • Gherkin 2.6%