Unable to find the nunit.framework.dll Mobile center UITests

I am currently trying Xamarin Test Cloud with Mobile Center, but always that I try to run the test in my prompt (tried on mac and on my windows) in both case I receive an error related to nunit

Unable to find the nunit.framework.dll in the assembly directory. In Xamarin Studio you may have to right-click on the nunit.framework reference and choose Local Copy for it to be included in the output directory.
Preparing tests failed.
Command failed, Cannot prepare UI Test artifacts. Please inspect logs for more details

The nunit dll is there on packages nunit 2.6.4 lib, but always the same error.

command:
mobile-center test run uitest --app "xxx" --devices xx --app-path xxxx.ipa --test-series "x" --locale "en_US" --build-dir xxxx

Am I missing something? anyone getting this error?

Best Answer

  • AnthonyMehallelAnthonyMehallel US ✭✭✭
    Accepted Answer

    Hi @BrunoShow ,

    in your build-dir : make sur you have this file "nunit.framework.dll".

    if it's not the case, You can find it in : UIProject/bin/debug

    Anthony Mehallel.

Answers

  • AnthonyMehallelAnthonyMehallel USMember ✭✭✭
    Accepted Answer

    Hi @BrunoShow ,

    in your build-dir : make sur you have this file "nunit.framework.dll".

    if it's not the case, You can find it in : UIProject/bin/debug

    Anthony Mehallel.

  • BrunoShowBrunoShow USMember

    Thank you @AnthonyMehallel , I was setting build-dir to my UITest root folder, just changed it to one of folders inside my bin/, now it's working.

    Thanks a lot.

Sign In or Register to comment.