-
Notifications
You must be signed in to change notification settings - Fork 16
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
test for scaffolding #194
Comments
Hi rob; Not sure if there is already a framework for scaffolding @availity/workflow However, using Jest, I Wrote an integration test that scaffolds the cli. After the cli is scaffolded you have the ability to unit test the project however you want. Unfortunately it takes 1min 35 seconds to scaffold the cli on my local computer. I am looking for alternative ideas or other cli's that have a better solution. The test suite uses child_process {exec} and can be found at: Used jest because it seemed to agree with the javascript in the project. Next I am going to look at create-react-app to see how they attack the test. Feedback appreciated. |
Here is how create react app does their Setup and creates their CLI. create-react-app uses execa ... "a better child_process" |
@robmcguinness, are these comments heading in the right direction? The example is an integration test that allows unit tests after the project is scaffolded. Using Jest test suite, each test does wait on the previous test to finish. I did not open a pr because I need to research how to ignore the test when normally running the test suite since the scaffold test takes 1minute 40seconds to run. I think it would be a good test for the travis-ci but not necessarily for developers running the test suite before every commit. |
@MichaelDimmitt sorry haven't to time fully review. Quick pass of code looks good. Appreciate the research but I'll need a little more time to review. |
Write a unit test that runs the cli command for scaffolding projects and test to ensure artifacts are installed properly.
The text was updated successfully, but these errors were encountered: