Command Line jUnit

David Raygoza Gómez
El Acordeon del Programador
4 min readOct 29, 2019

--

Who needs an IDE?

Soo, you already watch all of Uncle Bob Martin’s talks on Youtube, read one or two tutorials about jUnit and wants to gave the Test Driven Development (TDD) a chance (Not a try or Yoda and Mr. Miyagi get upset if you just “try”) you might want to leave all the configuration job to Maven or your favorite IDE I can assure you know how all that works internally can be extremely usefull and the diference between doing cult cargo programming or just change the name of a getter, so, without IDE or Maven or ANT, au-naturel let’s see how to run jUnit’s tests from the command line.

Requirements

As mention before we are going to do this without the aid of Maven or an IDE so we are going to need the jUnit JARs and put them on the classpath.

First the jUnit jars, you can download all you’re going to need here:

Now that you have them, time to create the project.

Project

--

--

David Raygoza Gómez
El Acordeon del Programador

Programación, comics y una rara combinación de ambos, escribiendo desde México 🇲🇽