How can I run Nunit from another project

326 views Asked by At

I have an NUnit project for testing automations called TestManager and I have created another Web App project called TestManagerGateway to enable end-users to invoke those tests using "dotnet test" command.

basically when invoking the REST API in the gateway, it simply trying to run the dotnet test command using the TestManager dll ("dotnet test TestManager.dll" - I was trying to use reference to the TestManager project dll from my TestMangerGateway project.

however, I realized this is not possible and I get a fatal error for "The library 'libhostpolicy.so' required to execute the application was not found..."

obviously, when using the full path to the TestManager.dll on the Nunit project (TestMAanger) does work, but I am afraid that when creating containers for both projects this method will not work. how can I ensure that I can refer to the TestManager project when using this shell command once I build containers (docker containers) for both projects?

0

There are 0 answers