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

cardano-testnet-test: Test CLI queries #5684

Merged
merged 2 commits into from
Mar 11, 2024
Merged

cardano-testnet-test: Test CLI queries #5684

merged 2 commits into from
Mar 11, 2024

Conversation

smelc
Copy link
Contributor

@smelc smelc commented Feb 23, 2024

Description

Part of fixing #5672

We test queries by calling them, and parsing the result when relevant. We don't want to go into much fine-grained tests for each query, because this would be better done in a test dedicated to each query. The point of this PR is to start covering all queries, to make sure we at least call them once, and hence detect breakage.

We test each query by using its stdout version and its version that writes to a file. We do that because some queries have different behaviors when writing to stdout and to a file (see IntersectMBO/cardano-cli#566 about this).

This PR doesn't cover all queries yet. I did only 3 so far, to get feedback on the design. If this design is accepted, let's merge this one; and I will do follow-up PRs to test other queries.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Self-reviewed the diff

Base automatically changed from smelc/update-hedgehog-extras-to-0.6.1.0 to master February 26, 2024 09:07
@smelc smelc force-pushed the smelc/test-cli-queries branch from 3e4dfee to 3f3dd9f Compare March 4, 2024 15:42
@smelc smelc requested a review from a team as a code owner March 4, 2024 15:42
@smelc smelc force-pushed the smelc/test-cli-queries branch 8 times, most recently from 54339e3 to b17926c Compare March 5, 2024 15:25
@smelc smelc changed the base branch from master to mgalazyn/test/expose-parallel-testnet-flag March 5, 2024 15:26
@smelc smelc force-pushed the smelc/test-cli-queries branch 2 times, most recently from 9095577 to 1e75462 Compare March 5, 2024 16:59
@smelc smelc changed the base branch from mgalazyn/test/expose-parallel-testnet-flag to master March 5, 2024 16:59
@smelc smelc force-pushed the smelc/test-cli-queries branch 3 times, most recently from a15235b to d29d993 Compare March 6, 2024 13:11
@smelc smelc enabled auto-merge March 6, 2024 13:11
@smelc smelc force-pushed the smelc/test-cli-queries branch 2 times, most recently from 0d13a59 to 236b727 Compare March 7, 2024 09:19
@smelc smelc added this pull request to the merge queue Mar 8, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 8, 2024
@smelc smelc enabled auto-merge March 8, 2024 19:29
@smelc smelc force-pushed the smelc/test-cli-queries branch from a2120ac to dfb527e Compare March 11, 2024 09:45
@smelc smelc added this pull request to the merge queue Mar 11, 2024
Merged via the queue into master with commit c862dfe Mar 11, 2024
22 checks passed
@smelc smelc deleted the smelc/test-cli-queries branch March 11, 2024 10:55
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

Successfully merging this pull request may close these issues.

2 participants