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() {

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: (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
RemObjects Elements (Oxygene, C# and Silver) for .NET, Cocoa and Java.
Copyright 2003-2016 RemObjects Software, LLC. All rights reserved.

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

RemObjects Everwood
RemObjects Everwood
Copyright RemObjects Software, LLC 2002-2016. All Rights Reserved.

Could this be part of the problem:

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

1 Like