Path test coverage #117
rostockahoi
started this conversation in
Show and tell
Replies: 1 comment
-
Love the look of this 😄 ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I just wanted to share an idea that I had the other day: I am using Stoplight to create the Open API Spec for a Laravel API app. I integrated the Spec into Laravel's test suite using Spectator.
Now, at one point I got really lost about which paths/response codes I already covered with tests and which not. So I cooked up an Artisan command that would analyse all the paths and their response codes in the Spec and would compare them with the actual test methods that are present in the test suite.
Let me know what you think. Maybe it's worth to create a package.
This is how the HTML report looks like:
Beta Was this translation helpful? Give feedback.
All reactions