[Mono-dev] Unit testing an assembly: Makefile, std test suite, and reviewing.

Robert Jordan robertj at gmx.net
Wed Jan 26 08:29:14 EST 2011


Hi,

On 26.01.2011 14:10, Antoine Cailliau wrote:
> Hi all,
>
> I implemented System.ComponentModel.DataAnnotations.
> RegularExpressionAttribute. And I wrote some unit tests
> to check if it works. I've 3 questions for you.
>
> First, my tests are not compiled, nor run. Where should I add
> a reference to my new test class ? I didn't see any mention
> in any makefile... I'm lost :-)

Sources are added to:

	class/<assembly>/<assembly>.dll.sources

and test sources to:

	class/<assembly>/<assembly>_test.dll.sources

In your case:
System.ComponentModel.DataAnnotations.dll.sources
System.ComponentModel.DataAnnotations_test.dll.sources

> Second, in other tests I see references like "#A1-1". Does it
> refer to standard test suites? If so, where I can find these?
> Or their specifications.

The unit test messages are up to you.

> Third, once I'm sure that everything is ok. What's the process
> for making it reviewed by some of you? Should I do a pull
> request on github?

This.

Robert



More information about the Mono-devel-list mailing list