updating how cucumber loads features
starting to use a cucumber.yml to store the profile configs we will not be running @targets by defaultbug/bundler_fix
parent
fd9e92bb24
commit
8f3f37dd54
11
Rakefile
11
Rakefile
|
@ -9,14 +9,3 @@ require 'metasploit/framework/require'
|
||||||
Metasploit::Framework::Require.optionally_active_record_railtie
|
Metasploit::Framework::Require.optionally_active_record_railtie
|
||||||
|
|
||||||
Metasploit::Framework::Application.load_tasks
|
Metasploit::Framework::Application.load_tasks
|
||||||
|
|
||||||
begin
|
|
||||||
require 'cucumber'
|
|
||||||
require 'cucumber/rake/task'
|
|
||||||
Cucumber::Rake::Task.new(:features) do |t|
|
|
||||||
t.cucumber_opts = 'features --format pretty'
|
|
||||||
end
|
|
||||||
rescue LoadError
|
|
||||||
puts "cucumber not in bundle, so can't set up feature tasks. " \
|
|
||||||
"To run features ensure to install the development and test groups."
|
|
||||||
end
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
# config/cucumber.yml
|
||||||
|
##YAML Template
|
||||||
|
---
|
||||||
|
<% common = "--tags ~@wip --strict --tags ~@targets" %>
|
||||||
|
default: <%= common %> features
|
||||||
|
boot: <%= common %> --format html --out=features_report.html features
|
|
@ -1,11 +1,10 @@
|
||||||
require 'aruba/cucumber'
|
require 'aruba/cucumber'
|
||||||
paths = [
|
paths = [
|
||||||
File.expand_path(File.join(File.dirname(__FILE__))),
|
|
||||||
File.expand_path(File.join(File.dirname(__FILE__), %w(.. ..))),
|
File.expand_path(File.join(File.dirname(__FILE__), %w(.. ..))),
|
||||||
ENV['PATH']
|
ENV['PATH']
|
||||||
]
|
]
|
||||||
ENV['PATH'] = paths.join(File::PATH_SEPARATOR)
|
ENV['PATH'] = paths.join(File::PATH_SEPARATOR)
|
||||||
#"#{File.expand_path(File.join(File.dirname(__FILE__)))}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
|
|
||||||
Before do
|
Before do
|
||||||
@aruba_timeout_seconds = 60
|
@aruba_timeout_seconds = 60
|
||||||
end
|
end
|
|
@ -6,6 +6,6 @@ Before('@msfconsole') do
|
||||||
# -- --=[ 0 payloads - 0 encoders - 0 nops ]
|
# -- --=[ 0 payloads - 0 encoders - 0 nops ]
|
||||||
end
|
end
|
||||||
|
|
||||||
Before('@target') do
|
Before('@targets') do
|
||||||
step 'targets are loaded'
|
step 'targets are loaded'
|
||||||
end
|
end
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
begin
|
||||||
|
require 'cucumber'
|
||||||
|
require 'cucumber/rake/task'
|
||||||
|
|
||||||
|
|
||||||
|
Cucumber::Rake::Task.new(:features) do |t|
|
||||||
|
t.cucumber_opts = 'features --format pretty'
|
||||||
|
t.profile = 'default'
|
||||||
|
end
|
||||||
|
|
||||||
|
namespace :features do
|
||||||
|
Cucumber::Rake::Task.new(:boot) do |t|
|
||||||
|
t.profile = 'startup'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
rescue LoadError
|
||||||
|
puts "cucumber not in bundle, so can't set up feature tasks. " \
|
||||||
|
"To run features ensure to install the development and test groups."
|
||||||
|
end
|
Loading…
Reference in New Issue