dsymonds/gomock — Issue #6: Add integration tests for mockgen
Author: jacobsa
Created: 2012-01-07 21:20:20+00:00
State: open

It would be helpful to have some easily-updatable golden tests, so that you can tell how the output changes for each relevant commit and you can catch regressions for old bugs and add new regression tests for new fixes.

The test would consist of a handful of sets of input files along with `mockgen` commands, and a golden file for the command's output. For each one the test would:

1. Run the command using a locally-built copy of `mockgen`.
2. Compare its output against the golden file.
3. Fail if the output is not identical.
4. If the `--dump_new` flag is set, write the actual output to the golden file.

I can work on this.