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

Does not indicate when there is parameter step text mismatch #478

Closed
sswaroopgupta opened this issue Jul 12, 2016 · 1 comment
Closed

Does not indicate when there is parameter step text mismatch #478

sswaroopgupta opened this issue Jul 12, 2016 · 1 comment
Labels

Comments

@sswaroopgupta
Copy link
Contributor

sswaroopgupta commented Jul 12, 2016

Expected Behavior
I should get the count and text mismatch error if there is one when I do gauge --validate, or I should get a compilation error.

Actual Behavior
The behavior is different with each language runner. Ruby - I am not getting any error

Steps to replicate

  1. Create a project
gauge --init ruby
  1. Give the implementation
step 'The word <word> has <count> vowels.' do |word,sdf, expectedCount|
  assert_equal(expectedCount.to_i, count_vowels(word))
end
  1. From the command line do
gauge --validate

It says no error. But there is a mismatch in the number of parameters and step text parameter count.


Actual Behavior
With java language runner the scenario fails.
This should not be treated as a failure. The test is not even being executed. This is an Gauge has to handle differently.

Version

Gauge version: 0.5.1.nightly-2016-07-10

Plugins
-------
html-report (2.1.1.nightly-2016-07-08)
java (0.4.2.nightly-2016-07-07)
ruby (0.2.1)
@sriv
Copy link
Member

sriv commented Aug 14, 2017

There are two things reported:

@zabil zabil removed the ready label Nov 9, 2017
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