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

Post Reply
jmut
Forum Regular
Posts: 945
Joined: Tue Jul 05, 2005 3:54 am
Location: Sofia, Bulgaria
Contact:

Unit tests done. Then what? Integration test howto?

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

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

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

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

Post 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
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?

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

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

Post 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.
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?

Post by Jenk »

Fitnesse if there is a version for PHP. If not, just use SimpleTest, PHPSpec or PHPUnit.
Post Reply