Skip to content

Commit

Permalink
give them hell!
Browse files Browse the repository at this point in the history
parallelize minitest runs for functional tests
  • Loading branch information
arlimus committed Mar 16, 2016
1 parent 0a4567d commit 89d7f0b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/functional/command_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@
require 'helper'
require 'train'

# activate hell!
require 'minitest/hell'
class Minitest::Test
parallelize_me!
end

CMD = Train.create('local').connection

describe 'Inspec::InspecCLI' do
let(:runner) { Train.create('local').connection }
let(:repo_path) { File.expand_path(File.join( __FILE__, '..', '..', '..')) }
let(:exec_inspec) { File.join(repo_path, 'bin', 'inspec') }
let(:profile_path) { File.join(repo_path, 'test', 'unit', 'mock', 'profiles') }
let(:examples_path) { File.join(repo_path, 'examples') }

def inspec(commandline)
runner.run_command("#{exec_inspec} #{commandline}")
CMD.run_command("#{exec_inspec} #{commandline}")
end

describe 'example profile' do
Expand Down

0 comments on commit 89d7f0b

Please sign in to comment.