Skip to content

Commit

Permalink
[unity]试试安装指定版本的nunit看能否解决ut用例编译不过的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 27, 2024
1 parent 38a4284 commit a71949b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unity/cli/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ async function runTest(cwd, copyConfig, runInReflection, filter = '') {

// 运行测试
assert.equal(0, exec(`dotnet build ${testProjectName}.csproj -p:StartupObject=PuertsTest -v quiet`, { cwd: workdir }).code);
assert.equal(0, exec(`dotnet add package NUnit --version 3.14.0`, { cwd: workdir }).code);
assert.equal(0, exec(`dotnet test ${testProjectName}.csproj --blame-hang-timeout 10000ms ${filter ? `--filter ${filter}` : ''}`, { cwd: workdir }).code);
}

Expand Down

0 comments on commit a71949b

Please sign in to comment.