Set run configuration options for debug_test #76
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have a use case where I need to set up an environment variable only when debugging tests. We're using Temporal and for it not to timeout it needs a TEMPORAL_DEBUG variable set when debugging.
It would be great if we could configure extra run options to
debug_testso that we can set not only this but other configuration options as well.Would you be willing to accept a PR for this?
I have a use case that needs to set cwd and env. It would be nice to be able to merge table into what is running. I have a workaround for some of the options. I just override the ones that this plugin adds after setup but it doesn't work for test.
This is what I am doing to fix some of my problems.
@friesencr I created a #77 to add an option for extra configuration arguments specifically for when calling
debug_test().For all other configurations, I've been just adding arguments manually by looping through the default provided configs after setup.
I'd also like to see this implemented.
debug_testis an incredible convenience feature, but it's useless if your project has any kind of complex setup.For example, I'm working on a repo that requires the
--with-configflag to be set for testing and running locally. Since I can't pass that argument into any of the provided configs except(Arguments), I'm stuck manually passing in runtime regexes, and I can't take advantage of the really nice current test detection.Another potential approach would be to have
debug_testmodify a predefined config that users can override. That way the function signature stays the same, and we can customize to our heart's content.e.g.
I'd also like to see this added. I'm working on a project with the oci8 SQL driver which requires the
PKG_CONFIG_PATHenvironment variable to be set. I'm able to debug the whole project using a custom config, but I'd like to be able to use "Debug Test" for this as well.It would be very helpful if someone provided a minimal Go project setup as a PR in the
testsfolder to reproduce this scenario with a failing debug test.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.