- Issue created by @e0ipso
- 🇨🇦Canada pierre paul lefebvre
Do you know of any module that has tests with interactive input?
- 🇬🇷Greece TheodorosPloumis Greece
Drush itself has a Test Suite named Unish.
Most of the Drush tests here are based on Unish.
Some non-PHP tools and processes are mentioned here on this post Testing The CLI The Way People Use It, Smashing Magazine, 2022.
- 🇬🇷Greece TheodorosPloumis Greece
Actually, I see that the generator is using the Chi-teck/drupal-code-generator so the tests should look like here https://github.com/Chi-teck/drupal-code-generator/tree/3.x/tests.
- Assigned to pierre paul lefebvre
- 🇨🇦Canada pierre paul lefebvre
Awesome, thank you. I was trying to make the input work, but I wasn't able to send more than the first line.
Looks like this is what I needed (send an array to the input variable, check for expected text) : https://github.com/Chi-teck/drupal-code-generator/blob/3.x/tests/functio... - Status changed to Needs review
over 1 year ago 12:48pm 2 August 2023 - 🇨🇦Canada pierre paul lefebvre
A first test was written and merged into the 3.x branch on the drupal-code-generator project : https://github.com/Chi-teck/drupal-code-generator/pull/109/files#diff-e4...