Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting an error even after the successful run #27

Closed
sswaroopgupta opened this issue Jul 12, 2016 · 3 comments
Closed

Getting an error even after the successful run #27

sswaroopgupta opened this issue Jul 12, 2016 · 3 comments
Labels

Comments

@sswaroopgupta
Copy link
Contributor

sswaroopgupta commented Jul 12, 2016

Expected behavior
After running the gauge specs successfully I should not get a failure message

Actual behavior
Getting Failed to start Gauge Ruby runner. exit status 1 after the successful run of gauge specs

Steps to replicate

  1. Create a ruby project
gauge --init ruby
  1. Give the implementation
require 'test/unit'
include Test::Unit::Assertions

@vowels = nil;

step 'Vowels in English language are <vowels>.' do |vowels|
   @vowels = vowels.scan(/./);
end

step 'The word <word> has <count> vowels.' do |word, expectedCount|
  assert_equal(expectedCount.to_i, count_vowels(word))
end

step 'Almost all words have vowels <table>' do |wordsTable|
  wordsTable.rows().each do |row|
    word = row[0];
    expectedCount = row[1].to_i
    actualCount = count_vowels(word)
    assert_equal(expectedCount, actualCount)
  end
end

def count_vowels(string)
  string.count(@vowels.to_s)
end
  1. run the specs.
gauge specs
# Specification Heading
  ## Vowel counts in single word     ✔ ✔
  ## Vowel counts in multiple word   ✔ ✔

Successfully generated html-report to => /Users/sswaroop/work/rubytest/reports/html-report
Failed to start Gauge Ruby runner. exit status 1
Specifications: 1 executed  1 passed    0 failed    0 skipped
Scenarios:  2 executed  2 passed    0 failed    0 skipped

It is successful, but we get the following error
Failed to start Gauge Ruby runner. exit status 1

@mahendrakariya
Copy link
Contributor

Looks like this is related to #24

@kashishm
Copy link
Contributor

Fix will be available in nightly >= 2016/07/12

@sswaroopgupta
Copy link
Contributor Author

to check gauge --validate as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants