Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
8a73c7d0
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8a73c7d0
编写于
4月 04, 2017
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
renames: test -> test-mocha and test-electron -> test
上级
e2d30cc1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
25 addition
and
27 deletion
+25
-27
.travis.yml
.travis.yml
+1
-2
appveyor.yml
appveyor.yml
+0
-1
scripts/test-mocha.bat
scripts/test-mocha.bat
+10
-4
scripts/test-mocha.sh
scripts/test-mocha.sh
+5
-5
scripts/test.bat
scripts/test.bat
+4
-10
scripts/test.sh
scripts/test.sh
+5
-5
未找到文件。
.travis.yml
浏览文件 @
8a73c7d0
...
...
@@ -44,8 +44,7 @@ script:
-
gulp electron --silent
-
gulp compile --silent --max_old_space_size=4096
-
gulp optimize-vscode --silent --max_old_space_size=4096
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --reporter dot --coverage; else ./scripts/test.sh --reporter dot; fi
-
./scripts/test-electron.sh
-
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage; else ./scripts/test.sh; fi
-
./scripts/test-integration.sh
after_success
:
...
...
appveyor.yml
浏览文件 @
8a73c7d0
...
...
@@ -16,5 +16,4 @@ test_script:
-
node --version
-
npm --version
-
.\scripts\test.bat
-
.\scripts\test-electron.bat
-
.\scripts\test-integration.bat
scripts/test-
electron
.bat
→
scripts/test-
mocha
.bat
浏览文件 @
8a73c7d0
@echo
off
setlocal
set
ELECTRON_RUN_AS_NODE
=
set
ELECTRON_RUN_AS_NODE
=
1
pushd
%~dp0
\..
...
...
@@ -10,10 +10,16 @@ set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=
%NAMESHORT
:"
=
%
.exe
set
CODE
=
".build\electron\
%NAMESHORT%
"
rem Run tests in electron
%CODE%
.\test\electron\index.js
%
*
rem TFS Builds
if
not
"
%BUILD_BUILDID%
"
==
""
(
%CODE%
.\node_modules\mocha\bin\_mocha
%
*
)
rem Otherwise
if
"
%BUILD_BUILDID%
"
==
""
(
%CODE%
.\node_modules\mocha\bin\_mocha
--reporter
dot
%
*
)
popd
endlocal
exit
/b
%errorlevel%
exit
/b
%errorlevel%
\ No newline at end of file
scripts/test-
electron
.sh
→
scripts/test-
mocha
.sh
浏览文件 @
8a73c7d0
...
...
@@ -28,15 +28,15 @@ test -d node_modules || ./scripts/npm.sh install
# Build
test
-d
out
||
./node_modules/.bin/gulp compile
echo
"code
$CODE
"
# Unit Tests
export
VSCODE_DEV
=
1
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
cd
$ROOT
;
ulimit
-n
4096
;
\
cd
$ROOT
;
ulimit
-n
4096
;
ELECTRON_RUN_AS_NODE
=
1
\
"
$CODE
"
\
test
/electron/index.js
"
$@
"
node_modules/mocha/bin/_mocha
"
$@
"
else
cd
$ROOT
;
\
cd
$ROOT
;
ELECTRON_RUN_AS_NODE
=
1
\
"
$CODE
"
\
test
/electron/index.js
"
$@
"
node_modules/mocha/bin/_mocha
"
$@
"
fi
scripts/test.bat
浏览文件 @
8a73c7d0
@echo
off
setlocal
set
ELECTRON_RUN_AS_NODE
=
1
set
ELECTRON_RUN_AS_NODE
=
pushd
%~dp0
\..
...
...
@@ -10,16 +10,10 @@ set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=
%NAMESHORT
:"
=
%
.exe
set
CODE
=
".build\electron\
%NAMESHORT%
"
rem TFS Builds
if
not
"
%BUILD_BUILDID%
"
==
""
(
%CODE%
.\node_modules\mocha\bin\_mocha
%
*
)
rem Run tests in electron
%CODE%
.\test\electron\index.js
%
*
rem Otherwise
if
"
%BUILD_BUILDID%
"
==
""
(
%CODE%
.\node_modules\mocha\bin\_mocha
--reporter
dot
%
*
)
popd
endlocal
exit
/b
%errorlevel%
\ No newline at end of file
exit
/b
%errorlevel%
scripts/test.sh
浏览文件 @
8a73c7d0
...
...
@@ -28,15 +28,15 @@ test -d node_modules || ./scripts/npm.sh install
# Build
test
-d
out
||
./node_modules/.bin/gulp compile
echo
"code
$CODE
"
# Unit Tests
export
VSCODE_DEV
=
1
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
cd
$ROOT
;
ulimit
-n
4096
;
ELECTRON_RUN_AS_NODE
=
1
\
cd
$ROOT
;
ulimit
-n
4096
;
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
"
$@
"
test
/electron/index.js
"
$@
"
else
cd
$ROOT
;
ELECTRON_RUN_AS_NODE
=
1
\
cd
$ROOT
;
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
"
$@
"
test
/electron/index.js
"
$@
"
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录