Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests could be automatic during development #2

Open
czj opened this issue May 3, 2017 · 1 comment
Open

Running tests could be automatic during development #2

czj opened this issue May 3, 2017 · 1 comment

Comments

@czj
Copy link
Contributor

czj commented May 3, 2017

Like Guard with Ruby, we could use Sentry with Crystal to run specs every time one changes.

https://github.com/samueleaton/sentry

We could have a Makefile that allows us to build the binary :

$ make build

Or release :

$ make release

Or run tests :

$ make test

Or watch folders and run tests

$ make sentry
@czj
Copy link
Contributor Author

czj commented Oct 22, 2018

Like we use Makefile, a language/framework agnostic tool to run task, we probably could/should use a language-agnostic tool to run processes on changes.

The best candidate, I think, is entr :
https://github.com/clibs/entr

With a few lines in the Makefile we could have the usual / useful commands : watch src/*.cr to run tests on file change, watch src/*.cr and shards.lockto build and restart dev server, etc.

I'm maybe not good enough with bash to tackle the problem !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant