lundi 1 février 2016

Make all tests run multiple times with different environment setup

All tests create same "root object" in my system and the "root object" has multiple modes. I need each test to check everything against each mode. So I decided to make an internal static property in the "root object" where I can override which mode is used when it's created.

Now tests behavior depends on environment settings. I have a pretty big amount of tests and I can't modify each of them to test the same thing against each possible mode.

Instead I would like to setup modes in one place.

I want all the tests to run one time for each statically set mode when I hit "Run All Tests" in R#.

Is it possible to do?

Aucun commentaire:

Enregistrer un commentaire