EyeOfRa.ObserveFunction
— MethodObserveFunction(args...; kwds...) = ObserveFunction(stdout, args... ; kwds...)
See @observe
for details.
EyeOfRa.@observe
— Macro@observe func(args... ; kwds...)
Use Revise
to "observe" changes to a functions behaviour. This will track the return values and the stdout/stderr of the function.
Notes:
- This only tracks stdout, stderr output using
redirect_stdxxx
. Many functions (e.g.display
) will not output to the current stdout and so will not be captured. - "Repeats" are recorded. Two calls repeat, when they have the same output.
- Currently, any change to the function's module will cause the function to be retested.
- This will probably only work on linux at the moment...