Skip to content
Discussion options

You must be logged in to vote

thanks to @mfussenegger

dap.configurations.configurations.java = {
    {
        ...
        shortenCommandLine = "argfile",
        ...
    }
}

same can be use while running test cases. just add the config while calling the api
lua require'jdtls'.test_nearest_method({config = {shortenCommandLine="argfile"}})

one caveat. if your test cases are path dependent (my work project loads some json files into mongodb using relative paths). you will have to enusre that the "terminal" starts at the correct root directory for tmux i do

dap.defaults.fallback.external_terminal = {
	command = "tmux",
	args = { "split-pane", "-c", "<desired-root-dir>"},
}

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@mfussenegger
Comment options

@Abh15h3k
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Abh15h3k
Comment options

You must be logged in to vote
1 reply
@Abh15h3k
Comment options

Comment options

You must be logged in to vote
1 reply
@AskaJohnny
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants