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

Add test builder #46

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add test builder #46

wants to merge 4 commits into from

Conversation

worksofliam
Copy link
Member

@worksofliam worksofliam commented Feb 2, 2024

Adds a test builder to Source Orbit.

  • Scans the project for .test files and marks them as 'test modules'
  • Looks for all exports in the test modules and assumes they are test cases
  • When -wt/--writeTests is provided:
    • the source will be written to disk
    • added the project dep tree
    • when combined with -bf make, will add a pseudo test target which calls the runner
  • without -wt, then only validation of the tests are performed

To do

  • Get a valid assert working for the test modules
  • Provide better count in runner program
  • Ensure exit code of not-zero when there is at least one failure

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