What special things does ReSharper do when running unit tests?

Hi,

We used to run unit test with NUnit 2.4.8 and all tests pass green.

Now when I try to run the same set of unit tests from Visual Studio 2008 + ReSharper 4.5 - quite a lot of my unit tests fail.

The tests fail due to some differences in fractions calculations. This results in different outputs. We test outputs to several file formats and compare with "gold" files.

Here is an example of a difference we get in one of the outputs (XML):

GoldDifferenceException : Found difference in line 6 at position 332.
User: 66,85.35534 C5.271437,75.98212 -0.000002002,63.25573 0,49.99
Gold: 66,85.35534 C5.271438,75.98212 -0.000002002,63.25573 0,49.99

Both NUnit and ReSharper I think run in x64 mode.

Any ideas what can be causing this? What "extra special" things do you do when launch the test runner? Can you maybe stop doing that so my tests can pass please.

3 comments
Comment actions Permalink

BTW the gold files work well across all our development machines and this is reproducible with ReSharper 100% consistently - so it is not some hard to reproduce rounding errors.

0
Comment actions Permalink

Ah, sorry for posting that much. The reason seems to be the fact that ReSharper runs tests in x86, whereas NUnit was

running in x64. If I run NUnit in x86 I get the same results as with ReSharper.

So the question becomes - is ReSharper going to get an option to run unit tests in x86 or x64 mode? Would be nice I suppose.

0
Comment actions Permalink

Hello aw,

ReSharper 5 already can run unit tests in x86 or in x64 mode depending on
the target architecture and the current OS. You can download ReSharper 5.1
at http://www.jetbrains.com/resharper/download. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Ah, sorry for posting that much. The reason seems to be the fact that
ReSharper runs tests in x86, whereas NUnit was

running in x64. If I run NUnit in x86 I get the same results as with
ReSharper.

So the question becomes - is ReSharper going to get an option to run
unit tests in x86 or x64 mode? Would be nice I suppose.

---
Original message URL:
http://devnet.jetbrains.net/message/5269461#5269461



0

Please sign in to leave a comment.