Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
68c6182b
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,发现更多精彩内容 >>
提交
68c6182b
编写于
11月 15, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
clean up test scripts, bring back html server tests
上级
d08a44a9
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
19 addition
and
26 deletion
+19
-26
scripts/node-electron.bat
scripts/node-electron.bat
+1
-8
scripts/node-electron.sh
scripts/node-electron.sh
+2
-8
scripts/test-int-mocha.bat
scripts/test-int-mocha.bat
+0
-1
scripts/test-int-mocha.sh
scripts/test-int-mocha.sh
+0
-1
scripts/test-integration.bat
scripts/test-integration.bat
+7
-2
scripts/test-integration.sh
scripts/test-integration.sh
+8
-3
test/mocha.opts
test/mocha.opts
+1
-3
未找到文件。
scripts/
test-mocha
.bat
→
scripts/
node-electron
.bat
浏览文件 @
68c6182b
...
...
@@ -10,15 +10,8 @@ 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
%
*
)
%CODE%
%
*
rem Otherwise
if
"
%BUILD_BUILDID%
"
==
""
(
%CODE%
.\node_modules\mocha\bin\_mocha
--reporter
dot
%
*
)
popd
endlocal
...
...
scripts/
test-mocha
.sh
→
scripts/
node-electron
.sh
浏览文件 @
68c6182b
...
...
@@ -20,23 +20,17 @@ fi
INTENDED_VERSION
=
"v
`
node
-p
"require('./package.json').electronVersion"
`
"
INSTALLED_VERSION
=
$(
cat
.build/electron/version 2> /dev/null
)
# Node modules
test
-d
node_modules
||
./scripts/npm.sh
install
# Get electron
(
test
-f
"
$CODE
"
&&
[
$INTENDED_VERSION
==
$INSTALLED_VERSION
])
||
./node_modules/.bin/gulp electron
# Build
test
-d
out
||
./node_modules/.bin/gulp compile
# Unit Tests
export
VSCODE_DEV
=
1
if
[[
"
$OSTYPE
"
==
"darwin"
*
]]
;
then
cd
$ROOT
;
ulimit
-n
4096
;
ELECTRON_RUN_AS_NODE
=
1
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
"
$@
"
"
$@
"
else
cd
$ROOT
;
ELECTRON_RUN_AS_NODE
=
1
\
"
$CODE
"
\
node_modules/mocha/bin/_mocha
"
$@
"
"
$@
"
fi
scripts/test-int-mocha.bat
已删除
100644 → 0
浏览文件 @
d08a44a9
.\scripts\test.bat
--runGlob
**
\
*
.integrationTest.js
-g
integration
%
*
scripts/test-int-mocha.sh
已删除
100755 → 0
浏览文件 @
d08a44a9
./scripts/test.sh
--runGlob
**
/
*
.integrationTest.js
-g
integration
"
$@
"
\ No newline at end of file
scripts/test-integration.bat
浏览文件 @
68c6182b
...
...
@@ -8,12 +8,17 @@ if not "%APPVEYOR%" == "" (
)
set
VSCODEUSERDATADIR
=
%TMP%
\vscodeuserfolder
-
%RANDOM%
-
%TIME
:
~
6
,
5
%
::
Integration Tests
::
Tests in the extension host
.\scripts\code.bat
%~dp0
\..\extensions\vscode
-api-tests
\testWorkspace
--extensionDevelopmentPath
=
%~dp0
\..\extensions\vscode
-api-tests --extensionTestsPath
=
%~dp0
\..\extensions\vscode
-api-tests
\out
--disableExtensions --user-data-dir
=
%VSCODEUSERDATADIR%
.\scripts\code.bat
%~dp0
\..\extensions\vscode
-colorize-tests
\test
--extensionDevelopmentPath
=
%~dp0
\..\extensions\vscode
-colorize-tests --extensionTestsPath
=
%~dp0
\..\extensions\vscode
-colorize-tests
\out
--user-data-dir
=
%VSCODEUSERDATADIR%
.\scripts\test
-int-mocha
.bat
.\scripts\code.bat $
%~dp0
\..\extensions\emmet\test
-fixtures --extensionDevelopmentPath
=
%~dp0
\..\extensions\emmet
--extensionTestsPath
=
%~dp0
\..\extensions\emmet\out\test
--disableExtensions --user-data-dir
=
%VSCODEUSERDATADIR%
:: Integration & performance tests in AMD
.\scripts\test.bat
--runGlob
**
\
*
.integrationTest.js
%
*
:: Tests in commonJS (language servers tests...)
.\scripts\mocha
-electron
.bat .\extensions\html\server\out\test\
rmdir
/s /q
%VSCODEUSERDATADIR%
popd
...
...
scripts/test-integration.sh
浏览文件 @
68c6182b
...
...
@@ -12,10 +12,15 @@ fi
cd
$ROOT
#
Integration Tests
#
Tests in the extension host
./scripts/code.sh
$ROOT
/extensions/vscode-api-tests/testWorkspace
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-api-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-api-tests/out
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
./scripts/code.sh
$ROOT
/extensions/vscode-colorize-tests/test
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-colorize-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-colorize-tests/out
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
./scripts/test-int-mocha.sh
./scripts/code.sh
$ROOT
/extensions/emmet/test-fixtures
--extensionDevelopmentPath
=
$ROOT
/extensions/emmet
--extensionTestsPath
=
$ROOT
/extensions/emmet/out/test
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
#./scripts/code.sh $ROOT/extensions/emmet/test-fixtures --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test --disableExtensions --user-data-dir=$VSCODEUSERDATADIR --skip-getting-started
# Integration tests in AMD
./scripts/test.sh
--runGlob
**
/
*
.integrationTest.js
"
$@
"
# Tests in commonJS (language server tests...)
./scripts/node-electron.sh ./node_modules/mocha/bin/_mocha ./extensions/html/server/out/test/
rm
-r
$VSCODEUSERDATADIR
test/mocha.opts
浏览文件 @
68c6182b
--delay
--ui tdd
--timeout 10000
\ No newline at end of file
test/all.js
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录