How to enforce tests on change


In my repository, I want each code change to contain test. Is there a way to automatically achive it with Github and not as part of the code review?



There’s nothing built in to GitHub that would do that for you because GitHub doesn’t currently make a differentiation between test code and non-test code. There may be some add-on tools that could do something like that. On the other hand even if there is a change in the test code files, with current technology a human would need to verify that the changes appropriately test the code change.

1 Like