Closed ChromeQ closed 3 years ago
I then tried adding index.html
to the end of the htmlPath, and it did indeed upload that and I could see the index.html in the Published HTML tab.
Unfortunately, there are no css files included or js, I know you have the docs to describe using appendChild for scrips etc, but it seems a high barrier for entry since I do not have control of the index.html produced by the code coverage report.
I may be over simplifying this, but can't this extension simply act as a simple http server or display the iframe of whatever folder of html and associated files? I believe that would make this extension easy to use and very popular.
+1, this would be great.....generic folder would then work just like the JMeter report for any other report. Most useful reports have more than just the html file.
Hi folks, apologies for late reply. Unfortunately the best way (uploading all files and rendering index.html like a server) cannot be achieved in azure devops as per what i know. This was also my preferred choice and since there is currently no way to do this, i chose this route (Supporting jmeter and documenting how to do it for others tools). You can contribute to this extension and support your choice of tool if you thing will be re-usable.
For me a workaround would be to put the folder in a shared folder and have a web server to serve them. Unfortunately I don't know a good plugin to do that, The only one I know is allure plugin.
yeah, there are multiple issues with that approach. Most significant one is how do you make sure only azure AD authenticated users can fetch the report and it's not publicly on the internet for anyone else to see. Better zip the folder, publish as an artefact and download it to view the files.
I am trying to display the Istanbul code coverage for a JS project in your extension. The code coverage creates a folder with src files including css and js, and an index.html.
When adding the folder as the
htmlPath
to the extension I get this error:Here is the task:
Will it be possible to upload all files in that directory and then assume an index.html file as any server would?