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

Test lotus CLI output #12629

Open
masih opened this issue Oct 22, 2024 · 0 comments
Open

Test lotus CLI output #12629

masih opened this issue Oct 22, 2024 · 0 comments

Comments

@masih
Copy link
Member

masih commented Oct 22, 2024

There is currently barely any testing for CLI output, or a stablished way by which one would write tests for new CLIs in Louts. Such tests can be written using the existing integration test kit, where cli package level functions that return full node APIs can be swapped with a test kit node for testing to then proceed by instantiating a new urfav cli.App with the target command, etc. etc.

Ideally we should:

  • have a CLI test kit, a thin wrapper around current kit with some utilities for CLI testing
  • establish testdata pattern (for expected output given a command) to be able to easily add new tests.
@github-project-automation github-project-automation bot moved this to 📌 Triage in FilOz Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📌 Triage
Development

No branches or pull requests

1 participant