Page 1 of 1

BDD Integration with NUnit-console - missing dlls

Posted: Tue May 01, 2018 10:36 am
by zivshapirawork
Hi I tried the BDD Integration with NUnit-console, as the runner.
This works well in Visual Studio (specflow addin), since I can mark Ranorex.Core as "Local Copy" = True , in the reference property. This will create the necessary Ranorex dll's in the bin/Debug Folder
while using the Ranorex Studio (ranorexBdd addin), I cannot mark Ranorex.Core as "Local Copy" = True , in the reference property, since every time thprject opens it returns to False (only Ranorex.Core.Resolver stays true). This then does not create the necessary Ranorex dll's in the bin/Debug Folder, and they are not found by nunit-console.

note: I know about the settings "copy runtime to local" option, but it copies the ddls to /big/Debug/runtime dir and they are still not found. Also, some xml files, that are created by the build processes, are not in the copied files. (Example Ranorex.Core.xml)

What should I do?
thanks

Re: BDD Integration with NUnit-console - missing dlls

Posted: Thu May 03, 2018 8:30 am
by RobinHood42
Hi,

You could overcome the issue by specifying a pre-build event:

Project -> Properties:
Pre-build_event.png
I hope this helps.

Cheers,
Robin :mrgreen:

Re: BDD Integration with NUnit-console - missing dlls

Posted: Thu May 03, 2018 9:42 am
by zivshapirawork
Thanks RobinHood42 , I know about this, but as stated , setting the copy true and compiling creates files (e.g. xml files) that are not in the /runtime directory. So there seems to be a difference between the output of "copy runtime to local" (Settings) option and "Local Copy" true of a reference (Ranorex.Core)

Re: BDD Integration with NUnit-console - missing dlls

Posted: Mon May 07, 2018 8:47 am
by RobinHood42
Hello,

Please note, that I was not referring to the "Copy runtime to output" functionality, but to a pre-build event. The "Local copy" property of the Ranorex DLLs is reset everytime the project is opened, so this is not a viable solution. Furthermore, the generated XML files just contain documentation information and are not necessarily needed for the test execution itself.

Cheers,
Robin

Re: BDD Integration with NUnit-console - missing dlls

Posted: Tue Aug 21, 2018 1:16 pm
by zivshapirawork
Thanks Robin, I put the xcopy in post-build event (from Ranorex installation). works well.