Hi Nicholas,
There is nothing like that at the moment, but this is not the first time that this feature has been requested.
I agree that this would be useful and would like to see something like this integrated to specs2. However I don't have much time at the moment (my focus is on finishing the next major version).
One thing you can do right now is to prototype this functionality by creating an ad-hoc matcher that:
- shows the result the first time calls readLine for approval, then writes a file with the result
- shows a comparison of the stored result with the new result the second time and asks for approval (or not if doing continuous integration)
Some things to think about:
1. how to identify the results, which depend on the function f?
2. how to pass the directory that is going to hold the files?
3. how to change the behaviour for asking a confirmation or not?
4. is there a way to do this without unrestricted side effects?
1. I don't know. There is currently a mechanism to save examples results (at the example level, not the function level). In the future I might extend it to store other kinds of results?
2. this can be passed through the command line arguments by mixing in the CommandLineArguments trait
3. same thing, use an argument
4. this might be done elegantly with the new structure (coming up in the next release) but I'm not sure
I'm sorry I can't offer much more for now....