You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, for a few month on and off I've been trying to get this project to run tests in a docker image created by a docker compose file, and ran with docker-compose up. This is the way my job runs most of it's services locally.
If you clone both, run npm link on the launcher script fork and then run npm link mocha-explorer-launcher-scripts in the example-api folder. Add the settings above to the settings.json and then run a docker compose up. After this you'll notice that the tests run in the test explorer and provide correct feedback on whether they pass or fail when run.
The place where I've gotten stuck in the debugging part of it, I can't seem to get it to hit breakpoints and I feel like I must be misunderstanding the process a little. I've left my launch.json below to help. If anyones able to shed light on what I'm doing wrong I would bevery grateful. i hope to contribute this example back when I'm done so this becomes an easier process.
The text was updated successfully, but these errors were encountered:
duncanf95
changed the title
Help with getting docker docmpose debug working correctly
Help with getting docker compose debug working correctly
Nov 3, 2022
Hey, for a few month on and off I've been trying to get this project to run tests in a docker image created by a docker compose file, and ran with docker-compose up. This is the way my job runs most of it's services locally.
I've found success in getting the tests to run, I have 2 repos to show an example api and a fork of the launcher scripts
settings.json:
If you clone both, run
npm link
on the launcher script fork and then runnpm link mocha-explorer-launcher-scripts
in the example-api folder. Add the settings above to the settings.json and then run a docker compose up. After this you'll notice that the tests run in the test explorer and provide correct feedback on whether they pass or fail when run.The place where I've gotten stuck in the debugging part of it, I can't seem to get it to hit breakpoints and I feel like I must be misunderstanding the process a little. I've left my launch.json below to help. If anyones able to shed light on what I'm doing wrong I would bevery grateful. i hope to contribute this example back when I'm done so this becomes an easier process.
The text was updated successfully, but these errors were encountered: