Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I source dev-container-features-test-lib in my devcontainer or wsl? #51

Open
AceHack opened this issue May 17, 2023 · 1 comment

Comments

@AceHack
Copy link

AceHack commented May 17, 2023

Whenever I try to run the test command in my devcontainer it fails and says dev-container-features-test-lib can't be found. How do I include that?

@joshspicer
Copy link
Member

Those functions are only available when running a test with the devcontainer features test ... command. You can include those functions by adding source dev-container-features-test-lib to the top of your bash script (make sure to add #!/bin/bash to the top of the script).

An example can be seen here: https://github.com/devcontainers/feature-starter/blob/main/test/color/test.sh#L38

More info/documentation can be found here: https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants