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

Place machine-readable output as a file #91

Open
riywo opened this issue Aug 30, 2022 · 1 comment
Open

Place machine-readable output as a file #91

riywo opened this issue Aug 30, 2022 · 1 comment

Comments

@riywo
Copy link
Contributor

riywo commented Aug 30, 2022

High level commands such as web test run use stdout for informing to the human user. Therefore, it is not easy to pass the re-usable data to other process via pipe.

We could use stderr for logging and stdout for machine-readable information but such convention will break easily. Also, machine-readable information is not needed for human.

Thus, we should put such data on data directory like ~/.data/autify/output/web-test-run-<timestamp>-<pid>.json then print the location as a log. The other process like CI/CD integration can parse the file location from log easily and get the output in json format.

@riywo
Copy link
Contributor Author

riywo commented Oct 25, 2022

Or, providing a new option like --output-file=<file> might be better.

@riywo riywo changed the title Place machine-readable output to data directory Place machine-readable output as a file Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant