[Mono-dev] (incomplete) nunit26 migration patch
atsushieno at veritas-vos-liberabit.com
Wed Apr 6 09:48:18 EDT 2011
Today I was trying to see how many of our corlib tests fail on .NET 4,
and after seeing couple of blockers I (again) tried to migrate our nunit
from 2.4.8 to the latest 2.6 snapshot build.
This time I added Assertion.cs to our tests (as Charlie suggested
earlier) and "make test NO_DIR_CHECK=1" was successfully done at
mono/mcs only with small changes. I have already committed a couple of
changes in our tests in git master.
Here are the files to try out:
Put this under mono/mcs/build/common directory.
Extract this under mono/mcs. Like we have nunit24, there will be nunit26.
Apply this patch in mono master tree.
Some notes (you don't really need it).
Now, it cannot be applies to our tree as this nunit26 brought some
regressions. So far I tried only corlib and Mono.Security (which had
some test changes and I wanted to make sure to not regress as an example).
It does not seem to be very simple to fix all of those and test every
assembly in our class libs, but if anyone can try and come up with fixes
that makes tests pass on both 2.6 and 2.4, that would be great :)
To switch to nunit24, just revert mcs/Makefile and mcs/build/tests.make
and make sure to rebuild mcs/nunit24.
BTW after marking some blocking tests as NotDotNet, make
run-test-ondotnet now passes in corlib (with tons of failures...)
I posted my results to monobin: http://monobin.com/__m20041c31
More information about the Mono-devel-list