Sha256: d777722ebeef90a3b30d197757c83e0ce61c8599c8646df8fb4a8df3cd581799

Contents?: true

Size: 924 Bytes

Versions: 7

Compression:

Stored size: 924 Bytes

Contents

module Context
  module Steps
    module CucumberSteps
      def given_test_suite(context_suite)
        stop_test("Cucumber #{context_suite.test_suite} is unavailable", :no_cucumber) unless system("cucumber -d")
      end

      def test_successfull?(context_suite)
        stop_test("Cucumber test #{context_suite.test_suite} failed on execution", :cucumber_test_issue) unless system("knife context deploy --context-name #{context_suite.test_suite}")
      end
      
      def given_profile_name(context_suite)
        stop_test("Cucumber #{context_suite.profile_name} is unavailable", :no_profile) unless system("cucumber --profile #{context_suite.profile_name}")
      end

      def report_the_report(context_suite)
        stop_test("Cucumber test report #{context_suite.test_suite} failed to sent", :cucumber_test_issue) unless system("cucumber --profile #{context_suite.profile_name}")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
deploy-context-2.13.39 x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.38 x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.36 x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.35 x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.34 x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.26 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/steps/cucumber.rb
deploy-context-2.13.25 /home/jimboadmin/deploy-context/habitat/plan.sh/x86_64-linux/lib/deploy-context/steps/cucumber.rb