Closed seamusabshere closed 7 years ago
Just to clarify how it works right now, the test command you supply is used in the no arg case. When you pass a different command at the CLI, it currently takes precedence and replaces the command you supplied.
When debugging this or other problems, set RUST_LOG=cage::command_runner=debug and it will print the commands it's running.
--entrypoint
for tests. Regular --entrypoint
is already confusing, with lots of nasty edge cases, as seen here for example.--entrypoint
.I've added new documentation for cage test --help
that explains the first and last cases. Check it out here and let me know what you think: https://github.com/faradayio/cage/commit/4478390280a478cd32bdace6ba733472be24718b
perfect!
(not that everybody uses rspec, but explaining how to use it would help people with other frameworks)
i have set
io.fdy.cage.test: "rspec"
no arguments - works as expected
$ cage test myservice
first try (
run
) - failedsecond try (
exec
) - failedthird try (
test
) - most logical, concise, but failedyou would expect it just appends the args to whatever is in
io.fdy.cage.test
fourth try (
test
) - works, but not super logical, or maybe it isi guess it is logical if you consider
test
to set up the env, but not necessarily run the command