Re: [TDD] Long running test suite
Empty out the integration and up tests and sub in more microtests. [testdrivendevelopment] <testdrivendevelopment@...> wrote:
By
Tim Ottinger
·
#35700
·
|
Re: [TDD] Long running test suite
http://martinfowler.com/articles/continuousIntegration.html Jump to the section: "Keep the Build Fast". -- Abra?os, Josu¨¦ http://twitter.com/josuesantos
By
Josue Barbosa dos Santos
·
#35698
·
|
Re: [TDD] Long running test suite
A common approach is to split your tests by type (unit, integration, UI), or at least by speed (fast, slow). Then, always run the fast tests before check-in, but let the build/CI server run the slow
By
Steven Smith
·
#35697
·
|
Re: [TDD] Long running test suite
Hi, I'd say you have a good opportunity for refacoring! If your tests cover your functionality; go a head and refactor into smaller functional units. good luck! /niklasb <-----Ursprungligt
By
Niklas Bergkvist <niklas.bergkvist@...>
·
#35699
·
|
Re: [TDD] Long running test suite
I don't know if it still works this way, but the Flex framework used to run a dedicated nightly build for the UI tests that could take a really long time to run. They had their own Jenkins build
By
Avi Kessner
·
#35696
·
|
Re: [TDD] Long running test suite
It might well depend on the size and complexity of the system. I agree that ten minutes is long, but¡ on a system with several million lines of code and and tends of thousands of unit tests, it
By
Russell Gold
·
#35695
·
|
Re: [TDD] Long running test suite
25 minutes is ridiculously long. The old XP rule was 10 minutes and that was with 90s hardware. I start to get annoyed when it takes more than a few seconds. Likely the problem is too many of the
By
Adam Sroka
·
#35694
·
|
Re: [TDD] Long running test suite
We use?https://rubygems.org/gems/parallel_tests?. ?Be sure not to run more parallel test processes than you have CPU cores available, or the tests won't run as fast as they can. -- Albert Davidson
By
Al Chou
·
#35693
·
|
Long running test suite
Hello, To those who have experienced test suites that run long, say ~25 minutes, what are some techniques you have used to mitigate it? We still would like to be able to check in often and run the
By
Joselito D. Moreno
·
#35692
·
|
Re: [TDD] How to use TDD to test a process?
There's always Growing Object Oriented Software Guided By Tests by Steve Freeman and Nat Pryce if you want to know more about the mockist approach. testdrivendevelopment@...> wrote:
By
Douglas Waugh
·
#35691
·
|
Re: [TDD] How to use TDD to test a process?
Yes£¬ I'v read TDD by example. And now I'm reading the second. Thanks for the advice. :)
By
Jack Gao
·
#35690
·
|
Re: [TDD] How to use TDD to test a process?
Keith, Thanks for the reply. But I'm not working on C or CPP now. :)
By
Jack Gao
·
#35689
·
|
Re: [TDD] How to use TDD to test a process?
Yup, I'v read it. Nice of you! Thanks. :)
By
Jack Gao
·
#35688
·
|
Re: [TDD] How to use TDD to test a process?
If you're using C or C++ I recommend James Grenning 's book on "Embedded TDD" C. Keith Ray http://agilesolutionspace.blogspot.com/ twitter: @ckeithray
By
Keith Ray <keith.ray@...>
·
#35687
·
|
Re: [TDD] How to use TDD to test a process?
[testdrivendevelopment] <testdrivendevelopment@...> wrote: I recommend you to read the following two books: * TDD by example - Kent Beck. * Growing Object Oriented Software Guided by Tests
By
Josue Barbosa dos Santos
·
#35685
·
|
Re: [TDD] How to use TDD to test a process?
Sailor - read the book Test Driven Development: By Example by Kent Beck. br niklasb <-----Ursprungligt Meddelande-----> From: sailor.gao@... [testdrivendevelopment]
By
Niklas Bergkvist <niklas.bergkvist@...>
·
#35686
·
|
Re: [TDD] How to use TDD to test a process?
Thanks for reply. Nice of you. Actually I don't know how to write the test cases ( step by step using TDD). I know we should code by interface not implemention and we should consider the requirement
By
Jack Gao
·
#35684
·
|
Re: [TDD] How to use TDD to test a process?
Thank you, Surya! You are very nice. And the answer is so helpful. I'll try it. :)
By
Jack Gao
·
#35683
·
|
Re: [TDD] How to use TDD to test a process?
Sailor, If you have a good mocking tool it¡¯s very little effort to create a mock object. Then you can make assertions such as which methods should be called, and in what order. (For example
By
Donaldson, John <john.m.donaldson@...>
·
#35682
·
|
Re: [TDD] How to use TDD to test a process?
Here is the a list of possible tests for the UserService.Record method: ? Record__UserWithSameNameAlreadyExists__DeleteTheUser // Asserts only on calling the method _userDao.Delete with appropriate
By
Muppalla Sree Surya Prakash
·
#35681
·
|