Split up feature specs more
This commit is contained in:
parent
20b55981bc
commit
9ebdee0967
|
@ -39,9 +39,16 @@ spec:other:
|
|||
- ruby
|
||||
- mysql
|
||||
|
||||
spinach:project:
|
||||
spinach:project:half:
|
||||
script:
|
||||
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project
|
||||
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:half
|
||||
tags:
|
||||
- ruby
|
||||
- mysql
|
||||
|
||||
spinach:project:rest:
|
||||
script:
|
||||
- RAILS_ENV=test SIMPLECOV=true bundle exec rake spinach:project:rest
|
||||
tags:
|
||||
- ruby
|
||||
- mysql
|
||||
|
|
|
@ -1,11 +1,31 @@
|
|||
Rake::Task["spinach"].clear if Rake::Task.task_defined?('spinach')
|
||||
|
||||
namespace :spinach do
|
||||
namespace :project do
|
||||
desc "GitLab | Spinach | Run project commits, issues and merge requests spinach features"
|
||||
task :half do
|
||||
cmds = [
|
||||
%W(rake gitlab:setup),
|
||||
%W(spinach --tags @project_commits,@project_issues,@project_merge_requests),
|
||||
]
|
||||
run_commands(cmds)
|
||||
end
|
||||
|
||||
desc "GitLab | Spinach | Run remaining project spinach features"
|
||||
task :rest do
|
||||
cmds = [
|
||||
%W(rake gitlab:setup),
|
||||
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets,~@project_commits,~@project_issues,~@project_merge_requests),
|
||||
]
|
||||
run_commands(cmds)
|
||||
end
|
||||
end
|
||||
|
||||
desc "GitLab | Spinach | Run project spinach features"
|
||||
task :project do
|
||||
cmds = [
|
||||
%W(rake gitlab:setup),
|
||||
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets,~@commits),
|
||||
%W(spinach --tags ~@admin,~@dashboard,~@profile,~@public,~@snippets),
|
||||
]
|
||||
run_commands(cmds)
|
||||
end
|
||||
|
@ -14,7 +34,7 @@ namespace :spinach do
|
|||
task :other do
|
||||
cmds = [
|
||||
%W(rake gitlab:setup),
|
||||
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets,@commits),
|
||||
%W(spinach --tags @admin,@dashboard,@profile,@public,@snippets),
|
||||
]
|
||||
run_commands(cmds)
|
||||
end
|
||||
|
@ -33,4 +53,4 @@ def run_commands(cmds)
|
|||
cmds.each do |cmd|
|
||||
system({'RAILS_ENV' => 'test', 'force' => 'yes'}, *cmd) or raise("#{cmd} failed!")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue