-
Notifications
You must be signed in to change notification settings - Fork 24
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
Fix docker path #18
Fix docker path #18
Conversation
Hey @olimorris when I run the tests I can see this error in neotest.log
do you have any idea why? Note: this folder is visible into the container and host |
@eerison thanks for your work on this, looks really promising. Off the top of my head, I have no idea but will see if I can take a look in the coming weeks. |
Ok just a update, the file is created into the folder, then the problem is when it is loaded. probably it is getting from old path Note 1: Ok the file is created in container and host, But I saw that output file it is adding full path |
well I guess it is the issue, when I run test with relative path it create the output file with full path :'( |
Hey @olimorris do you remember where this icon is handled? |
If we're at the point of parsing test results ( function escape_pattern(target)
return target:gsub("(%W)", "%%%1")
end
function NeotestAdapter.results(test, result, tree)
local output_file = test.context.results_path
local ok, data = pcall(lib.files.read, output_file)
if not ok then
logger.error("No test output file found:", output_file)
return {}
end
data = data:gsub(escape_pattern("/app"), escape_pattern(local_root_dir))
local ok, parsed_data = pcall(lib.xml.parse, data)
... This code replaces all occurences of I made this as a quick-fix solution in my fork of this plugin and it has been working successfully for a couple of months now. There's probably more efficient way around escaping/replacing stuff but I don't have the time to look into it at the moment. |
Close #11