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

Automation test #68

Open
j178 opened this issue Jan 29, 2023 · 4 comments
Open

Automation test #68

j178 opened this issue Jan 29, 2023 · 4 comments

Comments

@j178
Copy link
Owner

j178 commented Jan 29, 2023

We need an automation test tool to ensure basic command are functional during each commit.

@acehinnnqru
Copy link
Contributor

What type of automation do you want? Unit Test or Integration Test?

For the Unit Test, we can just use the original go testing.

Or we can use a testing framework like testify.

For commands testing, we can use something like pseudo-terminal to test them. As I knew, there are some repositories trying to do this like go-expect, pty.

@j178
Copy link
Owner Author

j178 commented Feb 4, 2023

Thanks for the information, that's very useful.

I think I'm gonna go with testing to do some basic stdout output and file creation assertion, not planning to write very thorough unit tests.

@acehinnnqru
Copy link
Contributor

Maybe you can list the packages you would like to add tests. I can pick some.

@j178
Copy link
Owner Author

j178 commented Feb 4, 2023

Thank you for your help. I haven't thought about this issue clearly yet, and I don't think I'll work on it very soon.

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

No branches or pull requests

2 participants