dev-container-features-test-lib
docs?
#113
-
Where do I find some docs on dev-container-features-test-lib? The feature-template repo have some usage examples. But it's very mysterious 😄 Fx. what does
|
Beta Was this translation helpful? Give feedback.
Answered by
AlexanderLanin
Oct 8, 2022
Replies: 1 comment 2 replies
-
I've just encountered the same problem and it took me a while to even find the script, so let's ease that first: An attempt to reverse engineer the commands:
LABEL is basically the test case name |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
joshspicer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've just encountered the same problem and it took me a while to even find the script, so let's ease that first:
https://github.com/devcontainers/cli/blob/1910ca41015c627b884ddd69ebc52d1e8cdd8cf0/src/spec-node/featuresCLI/utils.ts#L59
An attempt to reverse engineer the commands:
check <LABEL> <cmd>
executes cmd and prints success/failed depending on exit code of cmd.
Note: Do not use quotes for cmd as there is no such executable as e.g. "python3 --version".
Correct:
check "python is available" python3 --version
checkMultiple <LABEL> <MINIMUMPASSED> <cmd1> [cmd2] [cmd3] ...
runs all passend commands and prints success/failed depending on passed commands (exit code 0) vs MINIMUMPASSED
repo…