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

Adding unit tests for Engine #1438

Merged

Conversation

joelpramos
Copy link
Contributor

Description

Thanks for contributing this Pull Request. Make sure that you submit this Pull Request against the develop branch of this repository, add a brief description, and tag the relevant issue(s) and PR(s) below.

@joelpramos
Copy link
Contributor Author

@ptrthomas got distracted with the debugger cause I stumbled across the problem so didn't have time to do the additional unit tests we talked in the other PR to try to find additional edge cases. These all pass with your fix.

@joelpramos
Copy link
Contributor Author

Scenario: called feature with list of strings
  * def list = [ 'list1' ]
  * call read('call-arg-list-string.feature') list
  * match inside == 'got inside scenario'

call-arg-list-string.feature

Feature:

Background:

Scenario:
* print 'in scenario'
* match __arg == 'list1'
* def inside = 'got inside scenario'

@ptrthomas The called scenario is not called when it's a list of strings. If I change it to [ 'key': 'list1' ] it works.

Not sure if this is by design - I think the condition below skills the callFeature() method (basically checks that the values inside the list are a Map)

image

@ptrthomas
Copy link
Member

@joelpramos
Copy link
Contributor Author

oh right cause it's mostly with tables good point - ok so I couldn't find anything else in the engine! this was the last thing I tried

@ptrthomas
Copy link
Member

couldn't find anything else in the engine!

music to my ears. thanks 👍

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants