Originally posted by HS Thomas:
I have an interface that I want to write some tests against.
Eclipse has kindly generated some test stubs with TODOs marked against the testmethods.
How do I structure the tests ? Where do I start and how do I make sure the tests are at the right granularity.
I don't want to spend endless time re-writing my tests over and over again.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
quote:
--------------------------------------------------------------------------------
I don't want to spend endless time re-writing my tests over and over again.
--------------------------------------------------------------------------------
This typically just does not happen to me - can't tell you exactly why.
What is the *simplest* usage scenario you can think of for your CustomerService class?
Originally posted by HS Thomas:
Oh! I think you mean tests like :-
1: testCustomerHasSelectedNoServices();
I suppose I cannot code the User Interface just yet either.
In order for the writing of the Test Cases to flow freely, I must at least have completed the design to include use cases, domain models, interaction diagrams and class diagrams.
Or do the Tests come before producing all Design artifacts except use cases?
(I should really be avoiding duplication as test 3 is really test 2 run as many times as required.)
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Ilja Preuss:
This typically just does not happen to me - can't tell you exactly why.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
And how, oh how, is this documentation ?
That is a really big piece of pie for such a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|