I want to execute the tests from this R#/Rider plugin within a GitHub Action and therefore I need to run the tests from the CLI. Simply runnning dotnet test does exactly nothing but building the project.
How can I run tests of a R#/Rider plugin from the CLI so that I can embed this step into a GitHub Action?
One remark here: dotnet test must be invoked on the solution file (not the test project itself). Otherwise, there was an error about wrong paths. For now, I think that's acceptable.
发布评论
评论(2)
我们的模板中的一个错误:)它缺少与.NET SDK一起使用的一些引用,更具体地说:
也是在此提交中:https://github.com/matkoch/resharper-fluentassertions/commit/42fdd20f5c6168402d09b47a7e9e3baa1cc9852c
One remark here:
dotnet test
must be invoked on the解决方案文件(不是测试项目本身)。否则,关于错误路径的错误。就目前而言,我认为这是可以接受的。Kind of a bug in our template :) It was missing some references to work with the .NET SDK, more specifically these:
Also in this commit: https://github.com/matkoch/resharper-fluentassertions/commit/42fdd20f5c6168402d09b47a7e9e3baa1cc9852c
One remark here:
dotnet test
must be invoked on the solution file (not the test project itself). Otherwise, there was an error about wrong paths. For now, I think that's acceptable.我没有尝试过
dotnet test
,但是它们只是Nunit测试,因此可以使用Nunit命令行运行。I haven't tried with
dotnet test
, but they're just nunit tests, so can be run with the nunit command line.