box-builder / box

A mruby-based Builder for Docker Images
https://box-builder.github.io/box/
Other
237 stars 19 forks source link

added tests for --var #263

Closed dhoss closed 6 years ago

dhoss commented 6 years ago

Added basic testing for the --var command line switch.

Steps:

  1. create an ad-hoc box file that prints out the variable defined by --var
  2. check stdout to make sure the variable expected is printed out
  3. run another test with an ad-hoc box file that doesn't print the variable value to stdout and doesn't pass in said variable to --var
  4. check stdout to make sure there is no variable printed
erikh commented 6 years ago

ok to test

box-bot commented 6 years ago

Can one of the admins verify this patch?

dhoss commented 6 years ago

var tests are in cli-tests/vars_test.go, going to close this out