Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
ef589219
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ef589219
编写于
8月 05, 2016
作者:
J
Jacob Vosmaer
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add 'run tests' docs from GDK
上级
b29ec193
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
26 addition
and
4 deletion
+26
-4
doc/development/rake_tasks.md
doc/development/rake_tasks.md
+26
-4
未找到文件。
doc/development/rake_tasks.md
浏览文件 @
ef589219
...
@@ -14,11 +14,33 @@ Note: `db:setup` calls `db:seed` but this does nothing.
...
@@ -14,11 +14,33 @@ Note: `db:setup` calls `db:seed` but this does nothing.
## Run tests
## Run tests
This runs all test suites present in GitLab.
In order to run the test you can use the following commands:
-
`rake spinach`
to run the spinach suite
-
`rake spec`
to run the rspec suite
-
`rake teaspoon`
to run the teaspoon test suite
-
`rake gitlab:test`
to run all the tests
```
Note: Both
`rake spinach`
and
`rake spec`
takes significant time to pass.
bundle exec rake test
Instead of running full test suite locally you can save a lot of time by running
```
a single test or directory related to your changes. After you submit merge request
CI will run full test suite for you. Green CI status in the merge request means
full test suite is passed.
Note: You can't run
`rspec .`
since this will try to run all the
`_spec.rb`
files it can find, also the ones in
`/tmp`
To run a single test file you can use:
-
`bundle exec rspec spec/controllers/commit_controller_spec.rb`
for a rspec test
-
`bundle exec spinach features/project/issues/milestones.feature`
for a spinach test
To run several tests inside one directory:
-
`bundle exec rspec spec/requests/api/`
for the rspec tests if you want to test API only
-
`bundle exec spinach features/profile/`
for the spinach tests if you want to test only profile pages
If you want to use
[
Spring
](
https://github.com/rails/spring
)
set
`ENABLE_SPRING=1`
in your environment.
## Generate searchable docs for source code
## Generate searchable docs for source code
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录