Re: Tool to create assertions from a running Java application

Esko Luontola <[email protected]> Sat, 01 Feb 2014 22:15:49 +0200
Newsgroups gmane.comp.java.junit.user
Message-ID <[email protected]>
Hi,

These comments are not so much about your tool, but about tools for 
generating tests in general:

I think they are the wrong way around; It would be more beneficial to 
generate production code from tests.

That being said, they may have some limited use as characterization 
tests for legacy code. But I doubt any tool is smart enough to produce 
maintainable tests, so the tests would need to be rewritten after the 
system under test has been refactored enough that the programmer can 
understand what the code does. Changing the code's functionality is hard 
before it has good tests that each define a single behavior.


[email protected] wrote on 1.2.2014 15:45:
> Hi there
>
> I'd like to share a simple tool i created to make my JUnit life easier:
> AssertGen.
>
> AssertGen can create assertions for the state of a single Java Bean or a
> List of Java Beans from a running program. You yust need an IDE and a
> Debugger.
>
> Check this out:
>
> http://www.mirkosertic.de/doku.php/javastuff/createjunitassertions
>
> For questions and comments, don't hesitate to contact me.
>
> Kind Regards and happy testing
>
> Mirko
>


-- 
Esko Luontola
www.orfjackal.net