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

Add cucumber4 support fixes #90 #94

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

pmthexton
Copy link

This may not necessarily be the "correct" approach, in terms of the ability to support both cucumber 3 and cucumber >= 4

But given the lack of issues reported, I suspect most people who are using the plugin are perhaps still using cucumber3?

Also fixed some small bugs I ran in to along the way due to the unfortunately odd method I'm having to use right now for publishing results, as our existing automation runner executes feature files one by one.

Setting the ssl context was clearing out the authorization bearer
http header.

Now fixed.
Making use of attach_to_launch to allow individual executions
of cucumber for each feature file wasn't working.

Looks like perhaps this plugin hasn't been updated in line with the
API?
It looks like this has possibly changed in the API over time? the
existing values are rejected by the server as being invalid.

I've simply changed them to "valid" locator values from an almost vanilla
docker-compose instance.  But I'm not sure if this should really be using
statically included strings at all, but rather using ones specified in
the report_portal.yml or scenario tags instead?

I'll leave this one for the project maintainers to ponder
If cucumber is invoked with multiple formatters, our formatter may be
given the path to a file for output as opposed to being given STDOUT
Refactored report.rb to extract retrieval of information
about features/scenarios from a dependency injected class extractor

Extractor is created by a factory method which will return a class
appropriate for the current version of cucumber
The use of embed method is deprecated, as is the use of puts

Log messages supplied by use of the log method come through to the attach
method with an appropriate mime-type
@pmthexton pmthexton changed the title Add cucumber4 support Add cucumber4 support fixes #90 Sep 17, 2020
@HardNorth HardNorth requested a review from abotalov May 4, 2021 09:07
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