admin管理员组

文章数量:1353643

I have an ASP.NET core app that runs in Docker on Linux containers and I need to write unit tests for it.

I cannot compile and run the tests on Windows because the app requires a DLL compiled from C++ that only runs in Linux.

Is there a way to run my NUnit tests in a Linux container from Visual Studio?

I have an ASP.NET core app that runs in Docker on Linux containers and I need to write unit tests for it.

I cannot compile and run the tests on Windows because the app requires a DLL compiled from C++ that only runs in Linux.

Is there a way to run my NUnit tests in a Linux container from Visual Studio?

Share Improve this question asked Mar 31 at 16:49 smyodersmyoder 31 bronze badge New contributor smyoder is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 0

You can use a "remote testing environment" to run the tests in WSL or a Linux container: https://learn.microsoft/en-us/visualstudio/test/remote-testing?view=vs-2022

本文标签: dockerHow can I test my Linux Containerized ASPNET Core app using NUnit in Visual StudioStack Overflow