-
Notifications
You must be signed in to change notification settings - Fork 6
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
[CIVIS-7722] Parametrized tests support for cucumber #100
Conversation
3338929
to
46ce917
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
- Coverage 99.19% 99.15% -0.05%
==========================================
Files 147 147
Lines 6242 6284 +42
Branches 256 264 +8
==========================================
+ Hits 6192 6231 +39
- Misses 50 53 +3 ☔ View full report in Codecov by Sentry. |
expect(span.get_tag(Datadog::CI::Ext::Test::TAG_NAME)).to eq("scenario with examples") | ||
|
||
expect(span.get_tag(Datadog::CI::Ext::Test::TAG_PARAMETERS)).to eq( | ||
"{\"num1\":\"#{index}\",\"num2\":\"#{index + 1}\",\"total\":\"#{index + index + 1}\"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juan-fernandez fixed:
What does this PR do?
![image](https://private-user-images.githubusercontent.com/426400/295926634-2c0e9ec9-bc1b-41c1-b957-661a72ec1e2e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNzkwOTgsIm5iZiI6MTczOTM3ODc5OCwicGF0aCI6Ii80MjY0MDAvMjk1OTI2NjM0LTJjMGU5ZWM5LWJjMWItNDFjMS1iOTU3LTY2MWE3MmVjMWUyZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQxNjQ2MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMWM1YWZhNDE5MjEyMDU4M2Q3ODI3ZTVlNGZjY2Y2N2Q2MjBiOGM5NTNiMzg1NGM4ZDdhYzk3MjM1NGVjOTJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.QKNlXjN6wF0vDs_7g4EVxHaHn6iwLrAcxH5y7iDJ-UU)
Adds parametrized test support for cucumber-rby (version 4 and above):
Motivation
Currently all test runs with scenario outline have the same test fingerprint and treated as a single test being run multiple times. We should use
test.parameters
tag to distinguish these tests from each otherAdditional Notes
How to test the change?
Tested using https://github.com/anmarchenko/jekyll