Basically I want to start my API with the command python3 api/run.py so that I can run my test in the following steps (tests are sending http requests to the API).
The background: true option does not seem to work as expected. The API starts but my build freezes and does not go to the following step.
I’m not sure what’s happening, this issue does not seem to be due to background: true…
I have removed it and now my build freezes anyway. It executes api/run.py as described below but unit tests are not being executed by nose2.
Pro-tip: when cross-posting between channels, always declare your cross-posting. This will allow readers to check if you have acquired answers on your duplicates prior to making what might be a pointless effort in answering.
This one worked as well and seems to be a better practice as it’s using the flag background: true. I was not indenting it properly in my previous attempt.