DEV Community

developer-help
developer-help

Posted on

Unit testing from open source world

Hi Guys,

I was just preparing for one of my talks around unit testing and junit, I stumbled on one of the code repository on github aws-sdk-java. Here I found one unit test/integration/functional test class(Not sure where to fit in).

Some of the things worth noting,

  1. There are no assertions
  2. There are no validations of side conditions
  3. Only one test has expected condition as exception

  4. Share your thoughts on which category you will put this type of testing here ?

  5. Is the developer just trying to make effort for code coverage ?

https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/test/java/com/amazonaws/http/AmazonHttpClientTlsAuthTest.java

Right now dev.to doesnot support embedding of code block please click and link and see

Top comments (0)