-
Notifications
You must be signed in to change notification settings - Fork 69
Description
First of all a big thank you to everyone involved in this fantastic project. I used to use rspec_api_documentation, which is sadly no longer maintained, and I believe one big reason is the many output formats it supports. Focusing on OpenAPI is the right way to go imho, so please keep up the good work!
I finally have a project I would really like to try this gem out on, but sadly it is using Rails' built-in test facilities, i.e. minitest, not rspec. I do not think I can really sell converting the existing test suite to rspec, so I almost gave up. But then I got this crazy (?) idea and started looking into what it would take to make this minitest-compatible.
As far as I can see, the only rspec-specific code is in lib/rspec/openapi/hooks.rb. With this is mind, I quickly hacked together a proof of concept, to see if porting this to minitest is feasible: oneiros@5441904
It is really quick and dirty, but it does work, kind of 😬
So now I wonder how I should proceed with this. I see the following possible paths:
- If you are interested in providing minitest support from within this gem, I could polish my solution some more and prepare a pull request.
- This gem could be split in two. One new gem providing the general facilities to generate OpenAPI files from data gathered during test runs. And this gem would then only provide the rspec specific stuff. Other people would be free to implement minitest-based solutions depending on the new gem.
- I could fork this gem, rename it and rip out everyting rspec-specific.
What do you think?