Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Test module to compare results between different runs (save/load)

by choroba (Cardinal)
on Oct 03, 2018 at 13:10 UTC ( [id://1223462]=note: print w/replies, xml ) Need Help??


in reply to [solved] Test module to compare results between different runs (save/load)

This process is well known under the name "Regression Testing". See Test::Regression for a Perl implementation.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
  • Comment on Re: Test module to compare results between different runs (save/load)
  • Download Code

Replies are listed 'Best First'.
Re^2: Test module to compare results between different runs (save/load)
by Dallaylaen (Chaplain) on Oct 03, 2018 at 13:28 UTC

    Thanks!

    (Although I thought regression testing is a more general concept, just "find out if we broke something")

      ... I thought regression testing is a more general concept, just "find out if we broke something" ...

      It is (see Regression testing). (I like the word "just" in that quote.) In the most common notion of regression testing, you attempt to define all critical inputs and their correct outputs, a test set that can grow very large. (Can we call this "absolute" regression testing?)

      In the process you describe in the OP, you "just" take some input data set, run it through a process, and whatever the heck the output is, that's the correct output; if the next run has a different output, something broke. (Perhaps we can call this "differential" regression testing.)


      Give a man a fish:  <%-{-{-{-<

        Absolutely.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1223462]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found