We have something similar to that in Wikifunctions (we're rolling out editing rights slowly). You code in the central column, and the right column shows you the available tests for this implementation, and you can rerun them with a click while editing the code.