authentication-zero icon indicating copy to clipboard operation
authentication-zero copied to clipboard

Setup test infrastructure.

Open gobijan opened this issue 3 years ago • 2 comments

In order to create a solid solution usable by many apps it would make sense to put regression testing in place. Generators themselves are not easy to test but the workaround would be to create a build pipeline that runs a script that creates a new blank rails app, adds the gem, adds the controller, modifies the routes and adds the mail settings etc. When the new barebone app is finished and authentication-zero is setup it runs a test suite on the generated app. Not sure how to put the test suite in place (cloning from repo?, generating?).

What do you think @lazaronixon?

gobijan avatar Feb 27 '22 21:02 gobijan

It's a good ideia, but I need to figure out how to do it...

lazaronixon avatar Feb 27 '22 21:02 lazaronixon

Hey I have an idea... We create two repos, html and api, both fresh rails applications. After each version we run the generator on these apps, we will have two things, tested apps and and a diff change.

lazaronixon avatar Mar 01 '22 03:03 lazaronixon