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 buildSo a simple |
0 replies
|
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:
|
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Request
This is a 2-in-1 request:
test_commandsetting accepting a string (default is nil)bashly testsubcommand that does this:bashly build --env developmenttest_commandwith the arguments given tobashly testExample:
bashly test --some-option path/to/my-test-filewould act like I called these commands:If
test_commandis an empty string or nil,bashly testreports an error. Or even better: check iftest_commandis in the$PATHor 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 testsubcommand would also be nice.All reactions