-
Notifications
You must be signed in to change notification settings - Fork 6
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 adapter for C assuming Meson build system and Criterion unit testing framework #1
Commits on Jun 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cb048a1 - Browse repository at this point
Copy the full SHA cb048a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9ed2e7 - Browse repository at this point
Copy the full SHA e9ed2e7View commit details -
Basic support for running all tests from the open buffer
This is assuming the test executable is named after the test file, so: test_something.c -> exe == test_something So that the command line becomes meson test -C build test_something
Configuration menu - View commit details
-
Copy full SHA for 4844f97 - Browse repository at this point
Copy the full SHA 4844f97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89d764c - Browse repository at this point
Copy the full SHA 89d764cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 80d76bc - Browse repository at this point
Copy the full SHA 80d76bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e1aaab - Browse repository at this point
Copy the full SHA 8e1aaabView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8035467 - Browse repository at this point
Copy the full SHA 8035467View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc1509f - Browse repository at this point
Copy the full SHA fc1509fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1851c6a - Browse repository at this point
Copy the full SHA 1851c6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6afb151 - Browse repository at this point
Copy the full SHA 6afb151View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5412dc6 - Browse repository at this point
Copy the full SHA 5412dc6View commit details -
Simplify logic when printing results
Only print result if test is not SKIPPED
Configuration menu - View commit details
-
Copy full SHA for c6adab7 - Browse repository at this point
Copy the full SHA c6adab7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d32df4 - Browse repository at this point
Copy the full SHA 9d32df4View commit details -
Properly get the name of the test executable by parsing meson target …
…data Uses 'meson introspect --targets' to find the test executable that contains the source file in the currently open buffer. This fixes an issue with the existing implementation that assumed the name of the test executable from the name of the buffer. However this is not bullet proof. It is possible that the source file is used in multiple test executables, for instance to run with different parameters and flags.
Configuration menu - View commit details
-
Copy full SHA for aad34f9 - Browse repository at this point
Copy the full SHA aad34f9View commit details -
Move util.build_tests to meson.compile
Try to keep meson specific interaction in its own module for reusing later
Configuration menu - View commit details
-
Copy full SHA for 28a8d0f - Browse repository at this point
Copy the full SHA 28a8d0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 054e857 - Browse repository at this point
Copy the full SHA 054e857View commit details -
Configuration menu - View commit details
-
Copy full SHA for a525c10 - Browse repository at this point
Copy the full SHA a525c10View commit details -
Use empty parameter table to signal that the test can't be run
Configuration menu - View commit details
-
Copy full SHA for ac56ebc - Browse repository at this point
Copy the full SHA ac56ebcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 119c41f - Browse repository at this point
Copy the full SHA 119c41fView commit details -
Update handling of the json test results
Update API for capturing JSOn Store result in M
Configuration menu - View commit details
-
Copy full SHA for 936dc73 - Browse repository at this point
Copy the full SHA 936dc73View commit details -
Locate line number with error and update diagnostics UI
Configuration menu - View commit details
-
Copy full SHA for 99d4e3b - Browse repository at this point
Copy the full SHA 99d4e3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e975eba - Browse repository at this point
Copy the full SHA e975ebaView commit details -
Clean up and simplify: call criterion test executable directly instea…
…d of through `meson test` Should have done this all along. This adapter is all about criterion, not meson. We still use meson introspect to find the link between the source file and the test exectuable. The primary difference is that we now call the test executable directly instead of through `meson test -C build test_exe`. This allows for some simplifications: - Depend only on how the test executable behaves - Test output can be read directly instead of being captured in the output stream of meson (lots of text + some json + lots of text) - Simpler command line since test arguments don't have to be wrapped with meson's --test-args="" - Perhaps slighly easier to modify adapter later if we need to support a different build system delete test_parser
Configuration menu - View commit details
-
Copy full SHA for 6d44ebe - Browse repository at this point
Copy the full SHA 6d44ebeView commit details -
Let util parse the results and return the error messages.
Configuration menu - View commit details
-
Copy full SHA for 85f5ebc - Browse repository at this point
Copy the full SHA 85f5ebcView commit details -
Update diagnostics namespace Update adapter path Update adatper name
Configuration menu - View commit details
-
Copy full SHA for d76d2f6 - Browse repository at this point
Copy the full SHA d76d2f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a87dcd5 - Browse repository at this point
Copy the full SHA a87dcd5View commit details -
Replace the external json5 decoder with the built-in vim.json module. During development I had been testing vim.fn.json_decode whichs turns out to be a vimscript function that cannot be used in lua loop callbacks. I did not know there was also a module called vim.json which I'm using now...
Configuration menu - View commit details
-
Copy full SHA for 3a327fe - Browse repository at this point
Copy the full SHA 3a327feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20d7d20 - Browse repository at this point
Copy the full SHA 20d7d20View commit details -
Use empty string instead of nil to signal not found
The criterion and util modules return an empty string instead of nil value when a test exe was not found or if a test was not found in the buffer
Configuration menu - View commit details
-
Copy full SHA for 455b872 - Browse repository at this point
Copy the full SHA 455b872View commit details -
Fix bug after rebasing after breaking API changes
Realized that M.can_run is not called by quicktest, so need to call internally to make sure error handling still works
Configuration menu - View commit details
-
Copy full SHA for 30df723 - Browse repository at this point
Copy the full SHA 30df723View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9d65d2 - Browse repository at this point
Copy the full SHA a9d65d2View commit details -
The comment was valid when running the test through `meson test` which would automatically compile. Now we run the test executable directly and need to do compilation ourselves (which we do anyway).
Configuration menu - View commit details
-
Copy full SHA for aa996ff - Browse repository at this point
Copy the full SHA aa996ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for d33bfde - Browse repository at this point
Copy the full SHA d33bfdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for aadec24 - Browse repository at this point
Copy the full SHA aadec24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e79351 - Browse repository at this point
Copy the full SHA 6e79351View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2aa1b0 - Browse repository at this point
Copy the full SHA f2aa1b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04b1a96 - Browse repository at this point
Copy the full SHA 04b1a96View commit details -
Improve error handling when parsing test file and highlight shortcomi…
…ng of the adapter
Configuration menu - View commit details
-
Copy full SHA for b32b337 - Browse repository at this point
Copy the full SHA b32b337View commit details