最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - How can I test my Linux Containerized ASP.NET Core app using NUnit in Visual Studio? - Stack Overflow

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论