Compare commits
2 Commits
master
...
testing-re
Author | SHA1 | Date |
---|---|---|
R. Tyler Croy | 0e9d80be2d | |
R. Tyler Croy | d5fc65a824 |
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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":{
|
||||
"""
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@jenkins-server
|
||||
Feature: Adding slave nodes
|
||||
In order to have different environments for different projects
|
||||
As a developer
|
||||
|
|
Loading…
Reference in New Issue