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

Cleanup Tests #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Cleanup Tests #62

wants to merge 3 commits into from

Conversation

gnumonik
Copy link
Collaborator

Description of the change

This PR makes some changes to the test suite & includes a few miscellaneous fixes and needed features.

The (generated) portion of the test suite is now organized in a more sensible manner, with only a bare minimum of preparatory IO actions. Tests are now generated project directory-by-project directory, excessive file IO and redundant compilation is eliminated, etc.

Additionally, a basic framework for evaluating with execution limits has been added. We will need this to test non-terminating functions (and I guess we could use it as a rough gauge of script performance too?). Prior to this, all of our tests had been run using the machinery for evaluating PLC (that is, typed Plutus core) terms. I couldn't figure out how to add execution limits/budgets there, so we convert to UPLC before evaluating. The test suite runs both the PLC and UPLC versions of the evaluation tests for each function, for now, but we can likely remove the PLC evaluator in a subsequent PR and only use the UPLC one.

Finally there are some misc changes an fixes, the most important of which is that incomplete coverage in case expressions has been upgraded to error from a warning. We need this because we cannot compile a case expression with incomplete coverage.

This is a baby-steps PR - I still need to incorporate some existing (but disabled) tests which the changes here will allow us to finally run.


Checklist:

  • Wrote the code

@gnumonik gnumonik requested a review from kozross December 18, 2024 06:36
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.

1 participant