Convert C# unit test names to English (testdox style)
Posted
by Igor Zevaka
on Stack Overflow
See other posts from Stack Overflow
or by Igor Zevaka
Published on 2010-03-12T02:03:51Z
Indexed on
2010/03/12
2:07 UTC
Read the original article
Hit count: 246
I have a whole bunch of unit tests written in MbUnit and I would like to generate plain English sentences from test names. The concept is introduced here:
http://dannorth.net/introducing-bdd
This is from the article:
public class CustomerLookupTest extends TestCase {
testFindsCustomerById() {
...
}
testFailsForDuplicateCustomers() {
...
}
...
}
renders something like this:
CustomerLookup - finds customer by id - fails for duplicate customers - ...
Unfortunately the tool quoted in the above article (testdox) is Java based. Is there one for .NET?
Sounds like this would be something pretty simple to write, but I simply don't have the bandwidth and want to use something already written.
© Stack Overflow or respective owner