Welcome to Rainbow Portal Community Sign in | Join | Help

Alexey Moudrick's Blog @ Rainbow Community

SVN related
Multiportal functionality
Unit testing
GeographicProviderTest are not stable

Rainbow.Tests.GeographicProviderTest cases randomly fail locally on my workstation and on community build server (source.iocluster.com, see failed builds before 292 fixed).

The fails are random and unpredictable, they can appear or not, this is inadmissible.

The first I want to say is - there are extra try-catch blocks in the test cases. The test will fail even without, so we do not get any benefit from this block, but get extra code. If you want to asseert some statements without test case fail after assertion fail, you can use Log String TDD pattern. This pattern is not implemented in NUnit framework and has to be implemented by our own code.

I can remove the extra try-catch blocks myself  (and implement the pattern if needed), but first I will wait for MGF's team feedback, because if I do it myself, they will have to merge these changes inthe their sandbox trunk as they are the initial developers of that tests.

Also, if I run tests one by one manually from VS by ReSharper, they are always successful. So I suspect of some TearDown actions are unstable and should be at least reviewed.

Published giovedì 7 dicembre 2006 18.20 by moudrick

Filed under:

Comments

No Comments

Anonymous comments are disabled