Visual studio code 如何在Circle CI上运行VS代码扩展测试?
我已经为我的VS代码扩展编写了单元测试,这些测试在本地运行良好,但我想在我的Circle CI构建中运行它们 我有问题,但让这个工作,我看了指南,但似乎没有帮助 在运行测试之前,我已经尝试安装了它似乎需要的所有apt包,但仍然失败,并且没有错误消息Visual studio code 如何在Circle CI上运行VS代码扩展测试?,visual-studio-code,vscode-extensions,circleci,Visual Studio Code,Vscode Extensions,Circleci,我已经为我的VS代码扩展编写了单元测试,这些测试在本地运行良好,但我想在我的Circle CI构建中运行它们 我有问题,但让这个工作,我看了指南,但似乎没有帮助 在运行测试之前,我已经尝试安装了它似乎需要的所有apt包,但仍然失败,并且没有错误消息 sudo-apt-get-update;sudo apt get install libgtk2.0-0 libxtst6 libxss1 libgconf-2-4 libnss3 libasound2 yarn test v0.24.4 $ nod
sudo-apt-get-update;sudo apt get install libgtk2.0-0 libxtst6 libxss1 libgconf-2-4 libnss3 libasound2
yarn test v0.24.4
$ node ./node_modules/vscode/bin/test
### VS Code Extension Test Run ###
Current working directory: /home/circleci/repo
Downloading VS Code into "/home/circleci/repo/.vscode-test/stable" from: https://vscode-update.azurewebsites.net/1.24.0/linux-x64/stable
Running extension tests: /home/circleci/repo/.vscode-test/stable/VSCode-linux-x64/code /home/circleci/repo/test --extensionDevelopmentPath=/home/circleci/repo --extensionTestsPath=/home/circleci/repo/test
Tests exited with code: 1
error Command failed with exit code 1.
Exited with code 1
我假设您需要在docker图像中添加
-browsers
。因此,在config.yml中,类似于:
docker:
# specify the version you desire here
- image: circleci/node:12.4-browsers
使用节点版本替换
12.4
。每当您试图获得CircleCI构建帮助时,您都希望尽可能多地共享CircleCI配置。