JUnit Factory – Free Automated JUnit Generation

JUnit Factory is an experimental test generation service from AgitarLabs, the research division of Agitar Software. Send us Java code, and JUnit Factory sends back JUnit code that characterizes your code’s behavior. Free.

JUnit Factory is powered by our Agitator engine – the same technology that’s behind AgitarOne, our comprehensive, server-based unit testing solution for Java. We started JUnit Factory as a research project supporting Agitar’s “No Java Class Left Behind” initiative. Our intent was to give computer science students and test automation researchers easy access to our test generation technology. Seeing the interest it generated, we decided to make it open to anyone interested in JUnit and test automation.

While you are welcome to use JUnit Factory on any Java code for which you need tests, you should be aware that your code will be uploaded to our servers over the open Internet. Our commercial unit-testing automation solution, AgitarOne, has much more functionality than JUnit Factory and is installed on your hardware behind your firewall for full security. You can get an evaluation license of AgitarOne on our website.


“I like the JUnit Factory tests because they give me an independent perspective on my code.”
Kent Beck, co-author of JUnit