mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 08:04:37 +03:00
18 lines
568 B
Bash
18 lines
568 B
Bash
#!/bin/bash
|
|
|
|
# This test file will be executed against one of the scenarios devcontainer.json test that
|
|
# includes the 'color' feature with "favorite": "green" option.
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library bundled with the devcontainer CLI
|
|
source dev-container-features-test-lib
|
|
|
|
# Feature-specific tests
|
|
# The 'check' command comes from the dev-container-features-test-lib.
|
|
check "execute command" bash -c "color | grep 'my favorite color is green'"
|
|
|
|
# Report result
|
|
# If any of the checks above exited with a non-zero exit code, the test will fail.
|
|
reportResults
|