在 project.json 中,我写道:
“testRunner”:“mstest”
和依赖:
“MSTest.TestAdapter”:“1.0.0 预览版”
但是测试资源管理器无法发现里面的任何测试。
我猜正确的包是"dotnet-test-mstest": "1.0.1-preview"
但它也不起作用......
在命令行dotnet test命令正确运行:
Discovering Tests ...
Executing Tests ...
Passed AuthenticateSuccessful
============ Test Run Summary ============
Total tests: 1. Passed: 1. Failed: 0. Skipped: 0
Test Run Successful.
SUMMARY: Total: 1 targets, Passed: 1, Failed: 0.