testing - Building a test suite in a large existing Java code base -
testing - Building a test suite in a large existing Java code base -
i working on web application existing code base of operations has been around 10 years, there ~1000 class files , ~100,000 lines of code. news code organized well, business logic separate controller domain, , there high level of reusability. bad news there beginnings of test suite (junit); there's maybe 12 dozen tests @ most.
the code organized typically enterprise java project. there stuts-esque controller package, model consists of purely info objects, there hibernate database layer largely encapsulated within info access objects, , handful of service packages simple, self contained, , logical. end goal of building test suite move towards continuous integration development process.
how go building test suite such application? what tools utilize create process simpler?any suggestions welcome. thanks!
start reading working legacy code (short version here). next write couple of end-to-end smoke tests cover mutual utilize cases. here ideas on how approach it: http://simpleprogrammer.com/getting-up-to-bat-series/
then when need alter part of system, cover focused unit tests (refer aforementioned book) , change. little little scheme - or @ to the lowest degree parts alter - improve covered , working become easier.
java testing servlets junit
Comments
Post a Comment