Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
4eceb88e
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4eceb88e
编写于
6月 11, 2018
作者:
J
Joao Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip: build show integration tests
上级
33d88256
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
60 addition
and
14 deletion
+60
-14
.gitignore
.gitignore
+1
-0
extensions/markdown-language-features/src/test/index.ts
extensions/markdown-language-features/src/test/index.ts
+15
-4
extensions/vscode-api-tests/src/singlefolder-tests/index.ts
extensions/vscode-api-tests/src/singlefolder-tests/index.ts
+13
-2
extensions/vscode-api-tests/src/workspace-tests/index.ts
extensions/vscode-api-tests/src/workspace-tests/index.ts
+15
-4
extensions/vscode-colorize-tests/src/index.ts
extensions/vscode-colorize-tests/src/index.ts
+15
-4
scripts/test-integration.sh
scripts/test-integration.sh
+1
-0
未找到文件。
.gitignore
浏览文件 @
4eceb88e
...
...
@@ -14,4 +14,5 @@ out-vscode-min/
build/node_modules
coverage/
test_data/
test-results/
yarn-error.log
\ No newline at end of file
extensions/markdown-language-features/src/test/index.ts
浏览文件 @
4eceb88e
...
...
@@ -15,14 +15,25 @@
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.
const
path
=
require
(
'
path
'
);
const
testRunner
=
require
(
'
vscode/lib/testrunner
'
);
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
({
const
options
:
any
=
{
ui
:
'
tdd
'
,
// the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors
:
process
.
platform
!==
'
win32
'
,
// colored output from test results (only windows cannot handle)
timeout
:
60000
});
};
if
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
)
{
options
.
reporter
=
'
mocha-junit-reporter
'
;
options
.
reporterOptions
=
{
testsuitesTitle
:
`Integration Markdown Tests
${
process
.
platform
}
`
,
mochaFile
:
path
.
join
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
,
'
test-results/integration-markdown-test-results.xml
'
)
};
}
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
(
options
);
export
=
testRunner
;
extensions/vscode-api-tests/src/singlefolder-tests/index.ts
浏览文件 @
4eceb88e
...
...
@@ -15,14 +15,25 @@
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.
const
path
=
require
(
'
path
'
);
const
testRunner
=
require
(
'
vscode/lib/testrunner
'
);
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
(
{
const
options
:
any
=
{
ui
:
'
tdd
'
,
// the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors
:
process
.
platform
!==
'
win32
'
,
// colored output from test results (only windows cannot handle)
timeout
:
60000
});
};
if
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
)
{
options
.
reporter
=
'
mocha-junit-reporter
'
;
options
.
reporterOptions
=
{
testsuitesTitle
:
`Integration Single Folder Tests
${
process
.
platform
}
`
,
mochaFile
:
path
.
join
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
,
'
test-results/integration-singlefolder-test-results.xml
'
)
};
}
testRunner
.
configure
(
options
);
export
=
testRunner
;
extensions/vscode-api-tests/src/workspace-tests/index.ts
浏览文件 @
4eceb88e
...
...
@@ -15,14 +15,25 @@
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.
const
path
=
require
(
'
path
'
);
const
testRunner
=
require
(
'
vscode/lib/testrunner
'
);
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
({
const
options
:
any
=
{
ui
:
'
tdd
'
,
// the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors
:
process
.
platform
!==
'
win32
'
,
// colored output from test results (only windows cannot handle)
timeout
:
60000
});
};
if
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
)
{
options
.
reporter
=
'
mocha-junit-reporter
'
;
options
.
reporterOptions
=
{
testsuitesTitle
:
`Integration Workspace Tests
${
process
.
platform
}
`
,
mochaFile
:
path
.
join
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
,
'
test-results/integration-workspace-test-results.xml
'
)
};
}
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
(
options
);
export
=
testRunner
;
extensions/vscode-colorize-tests/src/index.ts
浏览文件 @
4eceb88e
...
...
@@ -15,14 +15,25 @@
// to report the results back to the caller. When the tests are finished, return
// a possible error to the callback or null if none.
const
path
=
require
(
'
path
'
);
const
testRunner
=
require
(
'
vscode/lib/testrunner
'
);
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
({
const
options
:
any
=
{
ui
:
'
tdd
'
,
// the TDD UI is being used in extension.test.ts (suite, test, etc.)
useColors
:
process
.
platform
!==
'
win32
'
,
// colored output from test results (only windows cannot handle)
timeout
:
60000
});
};
if
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
)
{
options
.
reporter
=
'
mocha-junit-reporter
'
;
options
.
reporterOptions
=
{
testsuitesTitle
:
`Integration Colorize Tests
${
process
.
platform
}
`
,
mochaFile
:
path
.
join
(
process
.
env
.
BUILD_ARTIFACTSTAGINGDIRECTORY
,
'
test-results/integration-colorize-test-results.xml
'
)
};
}
// You can directly control Mocha options by uncommenting the following lines
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
testRunner
.
configure
(
options
);
export
=
testRunner
;
\ No newline at end of file
scripts/test-integration.sh
浏览文件 @
4eceb88e
...
...
@@ -17,6 +17,7 @@ cd $ROOT
./scripts/code.sh
$ROOT
/extensions/vscode-api-tests/testworkspace.code-workspace
--extensionDevelopmentPath
=
$ROOT
/extensions/vscode-api-tests
--extensionTestsPath
=
$ROOT
/extensions/vscode-api-tests/out/workspace-tests
--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
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
./scripts/code.sh
$ROOT
/extensions/markdown-language-features/test-fixtures
--extensionDevelopmentPath
=
$ROOT
/extensions/markdown-language-features
--extensionTestsPath
=
$ROOT
/extensions/markdown-language-features/out/test
--disableExtensions
--user-data-dir
=
$VSCODEUSERDATADIR
--skip-getting-started
exit
0
mkdir
$ROOT
/extensions/emmet/test-fixtures
./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
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录