Link Details

Link 469689 thumbnail
User 359488 avatar

By botgad
via javadots.blogspot.com
Published: Aug 19 2010 / 04:46

class-wiper is a command line utility that will remove all JUnit-related classes from you bin/ directory. This allows you to place the test near the production code, and still prevent test classes from making it into the deliverable.
  • 5
  • 19
  • 1823
  • 1

Comments

Add your comment
User 211643 avatar

zynasis replied ago:

0 votes Vote down Vote up Reply

as if this is even an issue anymore. nobody would use this...

User 160967 avatar

alarmnummer replied ago:

2 votes Vote down Vote up Reply

A solution to a non existing problem imho.

User 203717 avatar

chudak replied ago:

2 votes Vote down Vote up Reply

Yes it's bad to deliver your test binaries with the rest of your software. Not only does it increase the footprint of your library artifact but correct dependency management requires that it drag along all the test related dependencies as well (junit, jmock, etc).

The solution? Let's just build another tool to solve a problem that we created by eschewing convention.

That's just lame.

Is it really such a problem to put those tests in another source tree? Most build tools (maven, ant) make this easy to manage.

This post reminds me of a guy riding his bike the wrong way down the middle of a city street and shouting at all the cars going the other direction.

User 42872 avatar

cafebabe replied ago:

0 votes Vote down Vote up Reply

A nightmare.

User 393686 avatar

RawThinkTank replied ago:

0 votes Vote down Vote up Reply

Why write the tests at all , that is a job of IDE and the compiler, Grow up kids.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Debugging JavaScript
Written by: Ashutosh Sharma
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Java EE7
  2. Spring Annotations
  3. Git
  4. Java
  5. REST