我正在寻找一种从命令行开始测试的解决方案。
- I created a UnitTest Procjet in VisualStudio2017 for my .NET solution.
- Added TestStack.White NuGet package to the project.
- The test are running fluently when I start from the VisualStudio2017.
I would like to start it from Jenkins also. I think it is the easiest to do it from command line, so I add it to my pipeline configuration (Jenkinsfile)
stage('Run UI Tests') { steps { bat('"C:\\PATH_TO_MSTEST\\mstest" /testcontainer:PATH_TO_MY_TEST_PROJECT\\bin\\Debug\\MyTests.dll') } }
当我像运行常规单元测试一样尝试从cmd启动时,它没有起作用。
它显示以下内容:
Starting execution...
No tests to execute.
在开始“运行UI测试”阶段之前,我会先构建项目。
有什么想法可以让它工作吗?在stackoverflow、TestStack的github问题页面或其他网络上的知名场所中都找不到真正的答案。