Forum Cross Platform with Xamarin

Command Line UITests not running for PCL?

CherubyxCherubyx CAUniversity ✭✭
edited September 2015 in Cross Platform with Xamarin


I'm attempting to run my UITests in my project with a PCL via console (MacOSX Terminal).

 /Library/Frameworks/Mono.framework/Commands/nunit-console4 bin/Debug/Project.UITests.dll
NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment - 
   OS Version: Unix
  CLR Version: 4.0.30319.17020 ( 4.0.3 ((detached/d6946b4 Wed Jul 29 14:46:23 EDT 2015) )

Tests run: 0, Failures: 0, Not run: 25, Time: 0.073 seconds

It detects all the tests but do not run them at all and gives me no errors. What am I missing?

I have more than one test class. They all have [TestFixture(Platform.Android)] and [TestFixture(Platform.iOS)] on top of the class.
They also have [Test()] above each test listed (25 total).

namespace Project.UITests
  [TestFixture (Platform.Android)]
  [TestFixture (Platform.iOS)]
  public class MenuTests
    public void TestOne() {...}

Best Answer


  • CherubyxCherubyx CAUniversity ✭✭

    Bump, can someone from Xamarin maybe have an opinion?

  • CherubyxCherubyx CAUniversity ✭✭
    edited September 2015

    Ok I searched further into my Test Results.xml file.

    <test-case name="Project.UITests.AboutPageTests.OpenAboutPage" executed="False">
         <message><![CDATA[Project.UITests.AboutPageTests does not have a valid constructor]]></message>

    Does it have to do with the TestFixture attribute?

  • tohweitohwei USMember ✭✭

    @Glenn Wilson
    I have 2.6.4 installed. But I couldn't find the path or the location of the exe file.
    "NUnit-2.6.4/bin/nunit-console.exe "

  • NuninzNuninz USMember ✭✭

    did you find a way of running just iOS or Android tests?

Sign In or Register to comment.