1 / 10

Oracle Generation

Oracle Generation. Ron Alford April 8th, 2008. The Oracle Problem. Oracle verifies input/result pairs A test case is only as good as its oracle. But what constitutes a result? Return value of function Change in state of program Time/CPU cycles used Trace of program execution.

shiela
Télécharger la présentation

Oracle Generation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Oracle Generation Ron Alford April 8th, 2008

  2. The Oracle Problem • Oracle verifies input/result pairs • A test case is only as good as its oracle. • But what constitutes a result? • Return value of function • Change in state of program • Time/CPU cycles used • Trace of program execution

  3. End Result Oracles • “Correct Program” oracles • Verifiable results • Predicate testing

  4. Predicate Testing (QuickCheck) ==>

  5. Assertion Oracles • Precondition/Postcondition Checks • Styles: • Straight assertions • Separate specification (Peters) • Inline specification/code (JMLUnit)

  6. Assertion Oracles (Peters)

  7. Assertion Oracles (JMLUnit)

  8. Trace Oracles • Temporal logic And several more operators…

  9. Trace Oracles (Uses) • Ensure: • initialization operators called first • Locking and unlocking performed properly

  10. Conclusions • There are many oracles, all partial • No results without specification • Even if it is implicit • Expounding the results for each test case is still specification

More Related