Page 1 of 1

Unit tests done. Then what? Integration test howto?

Posted: Sat Sep 13, 2008 5:19 am
by jmut
Hi devs,
Lets asume each unit (class or whatever standalone piece) is tested and working. How do you guys test those units working together. What tools are you using. Only think I am aware of right now is that I can use simpletest to test frontend, hence somehow testing units working together. What else might you recommend? Do you use unit testing frameworks (phpunit,simpletest etc) for integration testing?

Re: Unit tests done. Then what? Integration test howto?

Posted: Fri Oct 03, 2008 8:49 am
by McGruff
The SimpleTest web tester is very good.

However I'd recommend always starting with a web test and then working your way down from their. Have you tried test-driven design?

Re: Unit tests done. Then what? Integration test howto?

Posted: Fri Oct 03, 2008 2:10 pm
by jmut
I know all theory behind it but never really able to do in real project. Some day..oh some day I will :D

Re: Unit tests done. Then what? Integration test howto?

Posted: Mon Oct 06, 2008 8:06 am
by Jenk
Think of each behaviour, and write a test/spec for that. If $ObjectA->returnValue() should return an instance of ObjectB, write a test/spec for that. This is the simplest form of an Integration test.

Re: Unit tests done. Then what? Integration test howto?

Posted: Mon Oct 06, 2008 10:16 am
by jmut
Yeah, my question was more like are there special libs for integration tests or you use phpunit for example again to test behaviour...like interaction of 3-5 objects.

Re: Unit tests done. Then what? Integration test howto?

Posted: Mon Oct 06, 2008 8:18 pm
by Jenk
Fitnesse if there is a version for PHP. If not, just use SimpleTest, PHPSpec or PHPUnit.