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

Define a test runner for roundtrip generated code tests #88

Closed
desaikd opened this issue Feb 22, 2024 · 2 comments
Closed

Define a test runner for roundtrip generated code tests #88

desaikd opened this issue Feb 22, 2024 · 2 comments
Assignees

Comments

@desaikd
Copy link
Contributor

desaikd commented Feb 22, 2024

Define a procedural macro or build script that generates tests for generated code.
This way we can use reference to the generated code even without the need to generate it first.

@desaikd
Copy link
Contributor Author

desaikd commented Mar 18, 2024

Defining a test runner requires following changes in the current crate structure:

  • Generate code in a single module instead of multiple files/modules inside ion_data_model.
  • Create a separate directory for storing generated code in gradle project or crate.
  • The new directory should include some test cases for input schema and Ion input.
  • Write tests in ion-cli that runs the code generator and generates code into newly created directory that has java and rust projects.

@desaikd
Copy link
Contributor Author

desaikd commented Apr 9, 2024

Completed with #94, #95

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

No branches or pull requests

1 participant