Run same tests with multiple scenarios #114
Unanswered
AlexanderLanin
asked this question in
Q&A
Replies: 1 comment 7 replies
-
@joshspicer At one point referencing an image didn't work. Did this get fixed with your most recent updates? I ran into this as well (along with being able to specify the remote user) @AlexanderLanin I think right now you end up having to copy the same script name multiple times. If you are on linux or macOS, you could use a symlink. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a bunch of tests in
test/my-feature/test.sh
which I want to test with a bunch of base images (with python, without python, etc).I could run this line with a bunch of different base images:
devcontainer features test --features my-feature --base-image mcr.microsoft.com/devcontainers/base:ubuntu .
But it seems this is exactly what scenarios are for:
However from
base_ubuntu.sh
I cannot sourcetest.sh
or any other script I have since it's fully isolated.Obviously I don't want to copy paste the contents of
test.sh
to a bunch of different files.So how do I run the same script from different scenarios?
Beta Was this translation helpful? Give feedback.
All reactions