Unit tests done. Then what? Integration test howto?

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

Unit tests done. Then what? Integration test howto?

Postby jmut » Sat Sep 13, 2008 5:19 am

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?
jmut
Forum Regular
 
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria

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

Postby McGruff » Fri Oct 03, 2008 8:49 am

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?
McGruff
DevNet Master
 
Posts: 2893
Joined: Thu Jan 30, 2003 9:26 pm
Location: Glasgow, Scotland

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

Postby jmut » Fri Oct 03, 2008 2:10 pm

I know all theory behind it but never really able to do in real project. Some day..oh some day I will :D
jmut
Forum Regular
 
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria

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

Postby Jenk » Mon Oct 06, 2008 8:06 am

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.
User avatar
Jenk
DevNet Master
 
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

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

Postby jmut » Mon Oct 06, 2008 10:16 am

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.
jmut
Forum Regular
 
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria

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

Postby Jenk » Mon Oct 06, 2008 8:18 pm

Fitnesse if there is a version for PHP. If not, just use SimpleTest, PHPSpec or PHPUnit.
User avatar
Jenk
DevNet Master
 
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London


Return to Testing

Who is online

Users browsing this forum: No registered users and 2 guests