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

chore: Gen Tally Test Fixtures #167

Merged
merged 2 commits into from
Jun 5, 2024
Merged

chore: Gen Tally Test Fixtures #167

merged 2 commits into from
Jun 5, 2024

Conversation

gluax
Copy link
Collaborator

@gluax gluax commented Jun 4, 2024

Motivation

An easy way to generate tally test fixtures.

Explanation of Changes

Simple Data request generation for unit testing results of data_requests ready to be tallied.

You can see the code in xtask/src/main.rs. These are overly simplified at the moment, and tally inputs are only numbers(I am I'm not sure I built them correctly because they aren't RLP encoded).

cargo tally-data-req-fixture. It generates a file tally_data_request_fixture.json.

Testing

Command works.

Related PRs and Issues

N/A

@gluax gluax self-assigned this Jun 4, 2024
@gluax gluax changed the title chore: add a way to generate tally test fixtures chore: Gen Tally Test Fixtures Jun 4, 2024
@mariocao
Copy link
Member

mariocao commented Jun 5, 2024

Not for now, but maybe we could document the available xtask commands somewhere.

@gluax
Copy link
Collaborator Author

gluax commented Jun 5, 2024

I most certainly need to update the developing section all around lol

@gluax gluax force-pushed the chore/tally-test-fixtures branch from 9ba44ac to 7ad013c Compare June 5, 2024 14:11
@gluax gluax merged commit 7ad013c into main Jun 5, 2024
2 checks passed
@gluax gluax deleted the chore/tally-test-fixtures branch June 5, 2024 14:14
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