Replies: 3 comments
-
I dunno, this sounds like what Makefiles (or similar) were created for. Ex: # in Makefile
test: my_script
bats tests/my-tests.bats
.PHONY: test
my_script:
bashly build So a simple |
Beta Was this translation helpful? Give feedback.
-
This does not sit well with me (although as always, I am open to be convinced otherwise). Here are my top (but probably not only) reasons why:
|
Beta Was this translation helpful? Give feedback.
-
Good point guys. There are already well-established UNIX ways to solve the kind of issue I described. I think I'm too biased because of the Rails workflow (which is not necessarily good). Closing this one. |
Beta Was this translation helpful? Give feedback.
-
Request
This is a 2-in-1 request:
test_command
setting accepting a string (default is nil)bashly test
subcommand that does this:bashly build --env development
test_command
with the arguments given tobashly test
Example:
bashly test --some-option path/to/my-test-file
would act like I called these commands:If
test_command
is an empty string or nil,bashly test
reports an error. Or even better: check iftest_command
is in the$PATH
or is a path to an existing executable file.Motivation
When I'm in the coding/testing cycle, here's what happen sometimes:
Of course I can solve this with a shell alias or something, but thought that a
bashly test
subcommand would also be nice.Beta Was this translation helpful? Give feedback.
All reactions