Spike blackbox CLI runner with Node.js
Closed this issue · 0 comments
syamsudotdev commented
Spike blackbox CLI runner compatible with Node.js runtime
Target
- Improve existing flaky blackbox tests
- Change Bats as test runner to its alternatives
- Theoretically, it is possible to use Node.js'
child_process
APIs and assert its stdout and stderr
References
- https://github.com/sstephenson/bats
- https://nodejs.org/api/child_process.html#synchronous-process-creation
- Possible helper util to work with child_process APIs : https://github.com/jordan-mcrae/cli-mocker/blob/master/src/index.ts