小编Mic*_*l G的帖子

XUnit 跳过所有测试

我的 xunit 有问题,它跳过所有测试,没有任何消息或错误,我使用的是 ubuntu 20.04,但在 Windows 10 上我有同样的问题

michael@michael-System-Product-Name:~/gradebook$ cd test
michael@michael-System-Product-Name:~/gradebook/test$ mkdir GradeBook.Test
michael@michael-System-Product-Name:~/gradebook/test$ cd GradeBook.Test
michael@michael-System-Product-Name:~/gradebook/test/GradeBook.Test$ sudo dotnet new xunit
[sudo] password for michael: 
Getting ready...
The template "xUnit Test Project" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/michael/gradebook/test/GradeBook.Test/GradeBook.Test.csproj...
  Determining projects to restore...
  Restored /home/michael/gradebook/test/GradeBook.Test/GradeBook.Test.csproj (in 548 ms).
Restore succeeded.

michael@michael-System-Product-Name:~/gradebook/test/GradeBook.Test$ sudo dotnet test
  Determining projects to restore...
  All projects are up-to-date for restore.
  GradeBook.Test -> /home/michael/gradebook/test/GradeBook.Test/bin/Debug/net5.0/GradeBook.Test.dll
Test run for /home/michael/gradebook/test/GradeBook.Test/bin/Debug/net5.0/GradeBook.Test.dll (.NETCoreApp,Version=v5.0)
Microsoft (R) Test …
Run Code Online (Sandbox Code Playgroud)

c# xunit visual-studio-code

10
推荐指数
1
解决办法
2662
查看次数

标签 统计

c# ×1

visual-studio-code ×1

xunit ×1