【问题标题】:run unit test in .net framework 4.8 with command line使用命令行在 .net Framework 4.8 中运行单元测试
【发布时间】:2022-11-28 21:43:21
【问题描述】:

我最近在我的项目(.net framework 4.8)中创建了一个单元测试项目(.net framework)。 我使用 visual studio enter image description here 运行我的测试。 现在想在 gitlab 上为我的 ci/cd 添加一个阶段来运行我的测试。 我知道如何在 .net(dotnet 测试)中执行此操作,但我不知道如何使用命令行运行 .net 框架的测试

我很高兴知道您的解决方案。 发件人

【问题讨论】:

标签: c# .net unit-testing .net-4.8


【解决方案1】:

对于 .net 框架,您应该熟悉 MSBuild。如果您使用的是 MSTest,您还需要了解 VSTestConsole。不是太难! 这是minimal GitLab CI config for a .Net framework solution

另请查看here 了解更多详情。

【讨论】:

    猜你喜欢
    • 2022-07-26
    • 2011-03-18
    • 2016-02-19
    • 1970-01-01
    • 2014-03-20
    • 2011-04-25
    • 2011-04-29
    • 2019-03-22
    • 2012-06-28
    相关资源
    最近更新 更多