|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
doxygen, C# and NUnitHi, we’re using C# in our company, along with NUnit to test our
project. We’re also using doxygen to document our project. In order to document the tests we’re running, I’d like to
compile a list of test. Each test has an attribute prepended to the function call, it might
look like this: [Test] [Category(“foo”)] public void TestFoo() { Code; } Note that there is also the Category attribute that may occur an
arbitrary number of times. Along with the tests, other methods are included in the namespace, of
course. These do not carry the [Test] attribute. Can you please indicate a way how to compile a list with tests? I’d pretty much like to generate a single document / file that
only contains the tests. However, as we’re constantly adding tests, I’d
like to generate the list from the source code automatically with the help of
doxygen. Any help / pointer to the manual would be gladly appreciated. Thanks Michael ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Doxygen-users mailing list Doxygen-users@... https://lists.sourceforge.net/lists/listinfo/doxygen-users |
|
|
Re: doxygen, C# and NUnitSchnick, Michael:
> Can you please indicate a way how to compile a list with tests? > > I’d pretty much like to generate a single document / file that only > contains the tests. However, as we’re constantly adding tests, I’d like > to generate the list from the source code automatically with the help of > doxygen. > Thanks > Michael Hi Michael. Look for the ALIAS feature in the manual. It must be configured in the config file. You can make yourself an alias like \nunit which you use to mark your functions like this: /// my function. /// \nunit void bla() {...} Note that this does not care for your [Test] and [Category("foo")] attributes. You must place the alias \nunit manually. However; at the end you'll get a special page unter "related pages". This may be titled "Unit Testing" or whatever. In this page will be a list of your test functions, including hyperlinks. The \nunit alias (or however you name it) will work similar to the very popular \todo command. Clemens ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Doxygen-users mailing list Doxygen-users@... https://lists.sourceforge.net/lists/listinfo/doxygen-users |
| Free Forum Powered by Nabble | Forum Help |