Page 1 of 1

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

Posted: Wed Oct 18, 2006 1:14 am
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?

Posted: Wed Oct 18, 2006 1:27 am
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.

Posted: Wed Oct 18, 2006 2:37 am
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?

Posted: Wed Oct 18, 2006 2:48 am
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...;)

Posted: Wed Oct 18, 2006 11:37 am
by feyd
Why is this in a separate thread?