仅限Travis CI上的extensionTestsPath错误

问题描述 投票:0回答:1

我正在尝试为我的项目启动测试。

在使用启动配置时以及启动“npm test”时,它在本地工作正常。

关于travis CI,它失败了(参见here

Tests exited with code: 1
The command "npm test --silent" exited with 1.

这似乎是由于extensionTestsPath参数错误,请参阅here

--extensionTestsPath=/home/travis/build/jboss-fuse/vscode-atlasmap/test

虽然我期待

--extensionTestsPath=/home/travis/build/jboss-fuse/vscode-atlasmap/out/test

如launch.json中所述here

--extensionTestsPath=${workspaceRoot}/out/test

在Travis CI上使用extensionTestsPath的方式和原因可能与本地启动不同?我应该配置其他东西吗?

visual-studio-code travis-ci vscode-extensions
1个回答
0
投票

问题是之前没有编译过Typescript代码。更短的修复是在package.json中的脚本测试值中添加npm run compile &&

© www.soinside.com 2019 - 2024. All rights reserved.