I want to use my org-mode documentation as a sort of quasi-unittest; I want to execute the whole buffer, and be notified if marked cells' new results differ from their previous results. E.g,
#+begin_src python :results verbatim :exports both :wrap example :notify_on_change
x3(10)
#+end_src
#+RESULTS:
#+begin_example
30
#+end_example
Suppose x3
is changed and now x3(10)
returns 40
. I want to be notified that this change has happened (and get a diff of the two results).
PS: If this should be possible for visual (image) results, it would be really awesome.
PPS: Is there any testing framework that works like this? I.e., it only reports change, and does not need you to manually hardcode values?