Test frameworks overview

What we

already have ?

Junit3

Junit3

  • names
  • ignored tests 
  • assertion

Can we do

better ?

Junit3

Junit 4 + Harmcrest

  • @Test
  • @Ignore
  • assertThat(actual, equalTo(expected));
  • names
  • ignored tests 
  • assertion

Almost for free

Junit3

Junit 4 + Harmcrest

  • @Test
  • @Ignore
  • assertThat(actual, equalTo(expected));
  • names
  • ignored tests 
  • assertion

Can we do

 ?

even more

Popular test framewoks

  • Mockito
  • Powermockito
  • JMock
  • EasyMock
  • etc..

Jmockit

  • Powerful tool
  • Open source
  • "non-vanilla" API

Demo

time

perfection

There is no limit to

Possible ways to impove

  • step-by-step migration in tests
  • in-memory database (H2) +dbunit + liquibase
  • jvm based languges(Groovy, Scala, etc...)
  • javascript testing(Jasmine, Mocha)

deck

By jjoinme

deck

  • 535