Skip to content
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

Add an exec testing framework or mock #10

Open
shague opened this issue Sep 6, 2018 · 1 comment
Open

Add an exec testing framework or mock #10

shague opened this issue Sep 6, 2018 · 1 comment

Comments

@shague
Copy link

shague commented Sep 6, 2018

A testing mock or other suggestions for adding UT's would be useful. Possibly adding an exec mock that could allow simulating a test program and returning different error codes and console output.

Maybe adding a simple mock program or shell script to provide the different error codes and output would work.

@duttonw
Copy link
Contributor

duttonw commented Sep 6, 2018

Hi @shague ,

Thanks for linking to a use case of this component module.

The more of these this project has that is known the better a Consumer Driver Contract Integration test suite can be made so that we know when a change will break compatibility.

@shague: Do you think you can extract your use and expected output behaviour(this could be comments that need to be implemented at a later date) into a test or as comment here to start us off?

What do you think of this idea @vorburger ?

Regards

William

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants