Compare commits

...

2 Commits

Author SHA1 Message Date
R. Tyler Croy 0e9d80be2d Add a root Rakefile for running the tests 2012-07-29 19:13:55 -07:00
R. Tyler Croy d5fc65a824 Tag all the cucumber scenarios that require a Jenkins server to be started.
Moving these out of the default cucumber task so CI can more easily run these
scenarios
2012-07-29 19:12:28 -07:00
6 changed files with 32 additions and 9 deletions

16
Rakefile Normal file
View File

@ -0,0 +1,16 @@
namespace :test do
desc 'Run the tests for the jpi tool'
task :jpi do
end
desc 'Run the tests for the jenkins.rb CLI'
task :cli do
sh '(cd ruby-tools/cli && bundle install && rake spec cucumber)'
end
end
desc 'Run all the tests'
task :test => ['test:jpi', 'test:cli']
task :default => :test

View File

@ -10,7 +10,10 @@ namespace :cucumber do
t.cucumber_opts = "--tags @wip"
end
Cucumber::Rake::Task.new(:ok, 'Run features that should be working') do |t|
t.cucumber_opts = "--tags ~@wip"
t.cucumber_opts = "--tags ~@wip --tags ~@jenkins-server"
end
Cucumber::Rake::Task.new(:server, 'Run features that require a running server') do |t|
t.cucumber_opts = "--tags ~@wip --tags @jenkins-server"
end
task :all => [:ok, :wip]
end

View File

@ -7,7 +7,8 @@ Feature: Show build details
"""
No connection available to the server.
"""
@jenkins-server
Scenario: Show build details for a non-existent job (jenkins build_details)
Given I have a Jenkins server running
And the Jenkins server has no current jobs
@ -16,7 +17,8 @@ Feature: Show build details
"""
ERROR: Cannot find project 'ruby'.
"""
@jenkins-server
Scenario: Show build details for a job (jenkins build_details)
Given I have a Jenkins server running
And the Jenkins server has no current jobs
@ -38,5 +40,5 @@ Feature: Show build details
"""
"changeSet":{
"""

View File

@ -7,7 +7,8 @@ Feature: Listing jobs
"""
No connection available to the server.
"""
@jenkins-server
Scenario: List jobs on a server with no jobs (jenkins list)
Given I have a Jenkins server running
And the Jenkins server has no current jobs
@ -16,7 +17,8 @@ Feature: Listing jobs
"""
http://localhost:3010: no jobs
"""
@jenkins-server
Scenario: List jobs on a server with jobs (jenkins list)
Given I have a Jenkins server running
And the Jenkins server has no current jobs
@ -30,5 +32,3 @@ Feature: Listing jobs
* ruby
"""

View File

@ -1,3 +1,4 @@
@jenkins-server
Feature: Create and manage jobs
In order to reduce cost of getting a new project up onto Jenkins
As a project developer

View File

@ -1,3 +1,4 @@
@jenkins-server
Feature: Adding slave nodes
In order to have different environments for different projects
As a developer