You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would it be possible to execute a pre build step before a test run?
At the moment I always have to build my binary by hand and then use neotest, but it would make my life much easier if I could specify a prebuild task via the lets say ConfigureGtest command or a new ConfigureGtestBuild command or something, which could instead execute make or something similar and then the binary on every test run.
BTW: Thank you for this awesome plugin which makes my life already so much better :)
The text was updated successfully, but these errors were encountered:
Hey @thejezzi
I was hoping to do this as part of CMake support (so by default this hook would try to find the relevant target through CMake), but that proved to be a bit more difficult than I thought (see this issue).
I suppose as an intermediate step I can add a user hook.
Would adding something like recompile = function(file_path, project_root) to config be good enough for the time being?
Callback should be enough. Building can be done by a task plugin e.g. overseer.
Consider adding binary as a parameter, so it could be passed to the build system to speed up building (build only the binary containing test).
Another idea would be to use compile_commands and bypass the build system altogether. Although it's probably not very wise.
Hi there,
would it be possible to execute a pre build step before a test run?
At the moment I always have to build my binary by hand and then use neotest, but it would make my life much easier if I could specify a prebuild task via the lets say ConfigureGtest command or a new ConfigureGtestBuild command or something, which could instead execute make or something similar and then the binary on every test run.
BTW: Thank you for this awesome plugin which makes my life already so much better :)
The text was updated successfully, but these errors were encountered: