lundi 27 juillet 2015

How to trigger Unit Tests on ClearCase check in

The testing framework I'm writing includes templates for users to write their own tests. These tests have two modes, one for setting up their related files, and one for verifying those files. When users write their test, they must run the test in setup once to generate those files, but then I want to make sure they don't check in tests that are still in setup.

I can assert a test failure in the setup, but how can I trigger the unit tests at checkin and prevent checking in if any of the tests fail?

Is there a better way to prevent users from checking in files in a specific configuration?

Aucun commentaire:

Enregistrer un commentaire