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

[Criterion] Add support for quicktest.run all #8

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

oyvindaakre
Copy link
Contributor

@oyvindaakre oyvindaakre commented Jul 3, 2024

New

This PR adds support for quicktest.run_all in the criterion adapter by running all tests from the build directory defined by the user.

Changed

In order to support this, I semi-reverted my previous change here 6d44ebe
so that all tests are (again) run through meson test. It makes no difference to the user, but it makes the adapter more streamlined when it comes to running test and made it straight-forward to support run_all.

This commit kind of reverts the decision taken in
6d44ebe and once again runs tests
through the `meson test` CLI.
It does not matter all that much when testing 1 file (or 1 executable)
but makes a huge difference when attempting to run all tests in a
project

* Add utility function for capturing the test output (json) in a text stream
* Get exe from buffer returns meson target instead of full path to exe
@quolpr
Copy link
Owner

quolpr commented Jul 5, 2024

@oyvindaakre blindly merge, cause don't want to setup criterion 🥲 Thanks for the fix!

@quolpr quolpr merged commit c08dafc into quolpr:main Jul 5, 2024
3 checks passed
@oyvindaakre
Copy link
Contributor Author

Haha 😂 I bet I'm the only user of the adapter anyway :P If you ever feel like it, I added a readme in the test dir that should include how to setup the test project :)

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.

None yet

2 participants