java - Are there any code analysis tools that will make my job easier? -


i have inherited program written in managed c++ guy retired. after spending time digging through it, can @ least 95% of belongs on thedailywtf. however, tasked modifying , porting on language i'm comfortable with.

the program takes in many many parameters (50+) read in file , performs series of calculations , spits out report. once i'm done plowing way through pages of 3 letter variables (many of them reused totally unrelated purposes), need come way test code make sure comes same answers previous code.

this wishful thinking, there automated code analysis tools out there can aid me in task in way or form?

i porting on java.

i need come way test code make sure comes same answers previous code.

unit testing

since mentioned program takes parameters in file , outputs report, generate few inputs give sufficient coverage portions want unit test against output old code.

if breaks don't forget there chance have discovered bug in old code.

http://www.junit.org/

progressive port

i'd go porting piece piece, kind of feel fit problem since in report can grab specific fields , ignore have not ported yet (assuming output 1 field/calculation not need whole program ported) , verify against correct value old code (or other correct source in case of bugs in old code).


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -