Quantcast
Channel: R.NET
Viewing all articles
Browse latest Browse all 1634

New Post: R.Net and Unit Tests (NUnit)

$
0
0
I have an issue when running test units:

I use NUnit 2.6.3 and TestDrive.Net 3.8.2860 in Visual Studio 2012
R 3.1.2 and R.NEt 1.5.16

When I run unit tests the fist time the hello world example works fine.

The problem is that:
  • TestDrive process is not finished.
  • When running NUnit GUI if I want to repeat the single test (with Hello World example) the test fails. I get the following error:
.UnitTests.RNetTest.HelloWorldTest:
System.Exception : The single REngine instance has already been disposed of (i.e. shut down). Multiple engine restart is not possible.

w RDotNet.REngine.GetInstance(String dll, Boolean initialize, StartupParameter parameter, ICharacterDevice device)
w .UnitTests.RNetTest.HelloWorldTest() w .....UnitTests\RNetTest.cs:line 19

When I close NUnit or Kill TestDrive process and repeat the tests the result is OK.

Maybe this is a problem of Dispose() method called at the end of the test method?

Regards,
Sebastian

Viewing all articles
Browse latest Browse all 1634

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>