after i run the test, what should i do next?

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

after i run the test, what should i do next?

Post by kpraman »

Thanks for ur replies.

I have writte the code for delete, update etc. When i run, i get results,

TestCase MembersTest->testing_insert() passed
TestCase MembersTest->testing_insertNotable() passed
TestCase MembersTest->testing_update() passed
TestCase MembersTest->testing_updateData() passed
TestCase MembersTest->testing_insertData() passed
TestCase MembersTest->test_DeleteNoid() passed
TestCase MembersTest->test_Delete() passed
TestCase MembersTest->test_EnableMemberTest() passed
TestCase MembersTest->test_EnableMemberNottrueTest() passed



What should i do next?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Go forward and use the Members class knowing that it is probably relatively bug free, it is documented because it meets this test spec, and that you can make changes/additions to it later with this test suite to support your refactoring.
(#10850)
kpraman
Forum Contributor
Posts: 172
Joined: Fri Oct 13, 2006 10:54 am

Post by kpraman »

i want to know the steps. i.e Once i get all the results of the class file. Should i have to use the tested class file and HTML page? Or should i have to link it through the testcase file?
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Post by Maugrim_The_Reaper »

The test cases are independent of the class being tested - you can use your new class as you would any class. It's only when you make future changes that you should amend and rerun the tests to ensure the changes do not break your class's API.

My typical development process involves running the entire test suite (for all tested classes) on a regular basis. Assuming the test cases only require a few seconds to complete, I'll run the entire suite after any changes to any of the covered classes - this is important when classes start relating to each other and dependencies exist. It's also a good idea that if you discover a new bug, you add that the class behaviour that the bug broke to the test cases. This is regression testing - testing that prior bugs do not reoccur.

If you want specifics, layout a more detailed scenario...;)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Why is this in a separate thread?
Post Reply