cucumber / cucumber-js

Cucumber for JavaScript
https://cucumber.io
MIT License
5.04k stars 1.09k forks source link

include source reference on parameter type message #2287

Closed davidjgoss closed 1 year ago

davidjgoss commented 1 year ago

🤔 What's changed?

This PR captures a source (uri and line) when defining a parameter type, and then includes that as a SourceReference block when emitting the standard message for the parameter type.

Also, while we're here, it removes the list of "builtin" parameter types maintained in this repo, in favour of using the builtin prop of the parameter types themselves.

⚡️ What's your motivation?

Fixes #2272.

🏷️ What kind of change is this?

📋 Checklist:


This text was originally generated from a template, then edited by hand. You can modify the template here.

coveralls commented 1 year ago

Coverage Status

coverage: 98.497% (+0.005%) from 98.492% when pulling 42d75af5cbbc79e55ba2650836427da56df9f529 on feat/parameter-source-reference into 54ac0473b48fd0c785ec480d09373dce71ccb2af on main.