devcontainers / devcontainers/cli

`devcontainer features test` should log install output

Ouverte
#215 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
feature-request
Langage dominant
TypeScript
Étoiles
3k
Forks
457
Merge moyen
13 h 17 min
PR mergées (30 j)
6

Description

`devcontainer features test` is great for black box tests / end result tests of `install.sh`.
However I also want to make sure what the script does exactly, i.e. whitebox-test or interaction-test.

For example when `java` is already available, I want my script to not install `default-jre` as that's kind of stupid.
I cannot verify this via the end result, as it's always the same: `java` is available.

Of course I could write some file from my install script with such information, e.g. when a `debug` option is set to true.
However I don't want to have such an option in my feature?!
It does seem easier if the docker image as generated by `devcontainer features test` would `RUN` the script with `| tee install.log`?

Then it doesn't end up in the final feature and I could check the contents of install.log from `test.sh`.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.