﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Paulo Aboim Pinto commented on Unit tests vs. Integration tests</title><description>I have this two levels of tests too. Usually the unit test mock the next layer (example testing Business Layer and mock the Data Access Layer).
  
  
In the integration test I will run some database scripts to create the database initial state and run the integration tests that will do on Business layer and I will not mock the DAL. The test will go to the end of the chain .. to the database.
  
  
this is the way that I do.. and that's why the integration tests take more time then the unit tests (in my case).
  
  
  
Regards
  
Paulo Aboim Pinto
  
Odivelas - Portugal
</description><link>http://ayende.com/4003/unit-tests-vs-integration-tests#comment4</link><guid>http://ayende.com/4003/unit-tests-vs-integration-tests#comment4</guid><pubDate>Mon, 11 May 2009 01:18:54 GMT</pubDate></item><item><title>Ayende Rahien commented on Unit tests vs. Integration tests</title><description>John,
  
That number also include the time to spin up the test framework, but yes, they are oing a lot
</description><link>http://ayende.com/4003/unit-tests-vs-integration-tests#comment3</link><guid>http://ayende.com/4003/unit-tests-vs-integration-tests#comment3</guid><pubDate>Sun, 10 May 2009 13:48:03 GMT</pubDate></item><item><title>Igor Tamaschuk commented on Unit tests vs. Integration tests</title><description>And you are right. Moreover, every newbie in the test driven approach going to write the integration tests in first order. Especially if he is not strong enough in OOD and his design is like a one big transaction script with GOTOs :)
</description><link>http://ayende.com/4003/unit-tests-vs-integration-tests#comment2</link><guid>http://ayende.com/4003/unit-tests-vs-integration-tests#comment2</guid><pubDate>Sun, 10 May 2009 13:48:00 GMT</pubDate></item><item><title>John Chapman commented on Unit tests vs. Integration tests</title><description>Am I the only one that finds it shocking that 65 unit tests took 7.49 seconds to run?  Based on that timing it sounds like the unit tests may be doing more than expected.  I'm used to 65 unit tests taking a fraction of a second.
  
  
What kind of work are your unit tests doing?  It almost seems like they would need some level of "integration" to make them that slow.
</description><link>http://ayende.com/4003/unit-tests-vs-integration-tests#comment1</link><guid>http://ayende.com/4003/unit-tests-vs-integration-tests#comment1</guid><pubDate>Sun, 10 May 2009 13:37:01 GMT</pubDate></item></channel></rss>