Wait for Gallio. Meanwhile, please post a feature request for this behavior in JIRA. =) However, if you just can't wait, it should be possible to do this by implementing a new TestDecoratorPatternAttribute that wraps the IRun for the test with one that returns a fancier name.
However, the test names need to exist at test enumeration time. They cannot change while the tests are running. Also you might confuse TestDriven.Net because it won't be able to map the name of the test to run if you pick a single method in a test fixture to run. Jeff. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Leonid Lastovkin Sent: Wednesday, July 04, 2007 11:29 AM To: [email protected] Subject: MbUnit Generating name of the test dynamically. Hi, I have one project containing all of the tests. I will be running the tests on up to eight different configurations: {Debug, Release} x {Windows XP, Windows Vista} x {Office 2003, Office 2007} (I will compile the project twice: once in Debug mode, and once in Release mode). I would like to decorate my tests such that the name of the test would reflect the configuration. For example, a [Test] with signature "void TryHeuristicA() { ... }" would show up as "TryHeuristicA_WinXP_Office2003_Debug" ( I noticed that .Destory is usually appended to the end of the test. I do not need it per say, but do not mind it as long as the name of the test contains all of the config info.) So, if I have these public methods: // Returns "Debug" or "Release" string GetMode() { ... } // Returns "WinXP", "Vista", etc string GetOsVersion() { ... } // Returns "Office2003", "Office2007", etc string GetOfficeVersion() { ... } // Returns, for example: "WinXP_Vista_Release" string GetConfigInfo() { ... } Then how do I set it up? Regards, - Leonid --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/MbUnitUser?hl=en -~----------~----~----~----~------~----~------~--~---
