I’m running a test on my local it working properly, but when i tried to run it on my docker (docker run -i loadimpact/k6 run - <test.js) I’m getting an error saying they can’t find the remote module. Currently all the modules available on same folder.
how to tackle the current situation ?
If we move the modularize the code with different folders, then how can i tackle it ?
When i run a test (cat loginTest.js | docker run -i grafana/k6 run -) i’ll get a message like below
time=“2022-02-25T07:44:13Z” level=error msg="The moduleSpecifier “…/Pages/homePage.js” couldn’t be found on local disk. Make sure that you’ve specified the right path to the file.
.
Is just “redirecting” the content of a single file to a k6.
Please try to mount the catalog with the scripts as the docker volume, as I linked in the first answer. That way from the inside container you can get access to all files.