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

Turn schema tests into unit tests #9

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Turn schema tests into unit tests #9

merged 1 commit into from
Aug 6, 2024

Conversation

theory
Copy link
Member

@theory theory commented Jul 31, 2024

It was a bit fussy to have them as integration tests, and that's not really what they are anyway. So move them into src/tests and otherwise rejigger things only enough for them to have access to the private stuff they need.

Also move the test corpus into the top-level corpus directory.

While at it, move the compiler module under valid, as it's only needed by the valid module and the unit tests. Remove it from the root module and instead load it publicly only for tests.

@theory theory self-assigned this Jul 31, 2024
@theory theory added the enhancement New feature or request label Jul 31, 2024
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0eaa138) to head (6011d1b).

Additional details and impacted files
@@            Coverage Diff            @@
##               cli        #9   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         1    -1     
  Lines           80        43   -37     
=========================================
- Hits            80        43   -37     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

It was a bit fussy to have them as integration tests, and that's not
really what they are anyway. So move them into `src/tests` and otherwise
rejigger things only enough for them to have access to the private stuff
they need.

Also move the test corpus into the top-level `corpus` directory.

While at it, move the compiler module under valid, as it's only needed
by the valid module and the unit tests. Remove it from the root module
and instead load it publicly only for tests.
Base automatically changed from cli to main August 6, 2024 23:06
@theory theory merged commit 6011d1b into main Aug 6, 2024
12 checks passed
@theory theory deleted the mv-tests branch August 6, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant