Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: Stupid, but fun, ideas in testing

by dws (Chancellor)
on Nov 24, 2007 at 20:02 UTC ( #652754=note: print w/replies, xml ) Need Help??

in reply to Re^2: Stupid, but fun, ideas in testing
in thread Stupid, but fun, ideas in testing

By deliberately allowing different tests to run in the same process, you can easily find hidden assumptions about state.

One good way to shake out dependencies is to run the tests in semi-random order. "Semi" in the case means at least temporarily reproduceable, to allow for debugging. A switch to run the tests in reverse order is a trivially easy way to flush out some problems. Seeding the random number generator with the epoch date (but not the time) before randomizing test order allows for same-day debugging.

  • Comment on Re^3: Stupid, but fun, ideas in testing

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://652754]
[Discipulus]: Eily i'm testing a failure: i ok if i get bad results.. perhaps there is another way to do it...
[Discipulus]: in other words: i have a contructor that carps on missing arguments and I want to test that it fails correctly, without carping out in the test output

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2018-01-22 11:31 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.