Similar to Java unit testing frameworks, it would have been nice to have a "spy" object that can be asserted upon: call counts with specific kind (or any) arguments, capturing arguments, and so on. Currently, we only have the mock! macro but then we will have to provide our own implementation. It would have been nice to have a spy! macro which, for example, would provide a "spying" implementation of a trait, based on some already existing implementation, which we would later just use.
Similar to Java unit testing frameworks, it would have been nice to have a "spy" object that can be asserted upon: call counts with specific kind (or any) arguments, capturing arguments, and so on. Currently, we only have the
mock!macro but then we will have to provide our own implementation. It would have been nice to have aspy!macro which, for example, would provide a "spying" implementation of a trait, based on some already existing implementation, which we would later just use.