EUnit Discovery

Happy new year Everyone!

I have a test runner file:

import RemObjects.Elements.EUnit

let lTests = Discovery.DiscoverTests()
Runner.RunTests(lTests, withListener: Runner.DefaultListener)

And the following test class:

import RemObjects.Elements.EUnit

public class DNA : Test {

public func FirstTest() {
	Assert.IsTrue(true)
}
}

After DiscoverTests call the quantity of lTests are zero. What can be the problem? Thank you!

Hard to say, just from this. What platform, and what version of Elements are you using? can you send me the project so i can have a look?

Happy new year to you, as well!

Hello Marc!

Here is the solution, I built it on Default build platform, .Net, Silver:

Rosalind.zip (57.6 KB)

Microsoft Visual Studio Enterprise 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

RemObjects Elements 9.0.97.2071
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa and Java.
Copyright 2003-2016 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/elements

RemObjects Elements leverages the LLVM compiler backend:
Copyright © 2003-2016 University of Illinois at Urbana-Champaign. All rights reserved.
http://llvm.org

RemObjects Everwood 4.7.79.695
RemObjects Everwood
Copyright RemObjects Software, LLC 2002-2016. All Rights Reserved.
http://www.remobjects.com/everwood

Could this be part of the problem:

Thank you! I don’t know why was it set to content. Thank you again!

1 Like