function test_exit() %TEST_EXIT a command to quit matlab when running all tests % a no-op when I'm interactively editing and trying out tests if getenv('TEST_EXIT') exit; end