crowbar-core icon indicating copy to clipboard operation
crowbar-core copied to clipboard

Add guard support

Open aspiers opened this issue 9 years ago • 6 comments

It's indispensable for TDD coding.

aspiers avatar Nov 04 '16 23:11 aspiers

I would prefer if we integrate it into https://github.com/crowbar/crowbar/blob/master/Guardfile. Then we have all the guard code at one place.

rsalevsky avatar Nov 07 '16 00:11 rsalevsky

I would prefer if we integrate it into https://github.com/crowbar/crowbar/blob/master/Guardfile. Then we have all the guard code at one place.

but that will not work anymore if you just clone this repo... only works if you set up a development environment with the barclamps folder that has this repo here, which not everybody does.

MaximilianMeister avatar Nov 07 '16 07:11 MaximilianMeister

@rsalevsky I would prefer the opposite, because they have no goals or code in common.

aspiers avatar Nov 07 '16 14:11 aspiers

There are two reasons why I think it is better if we do it in the crowbar repo:

  1. We save the duplicated code for the gem definition.
  2. You just need to run one command to sync to the remote and see the results. @MaximilianMeister I think if you do crowbar development then you should use also the dev setup. Otherwise I'm not sure how the code should be tested.

If you get another +1 feel free to merge it I don't want to block merging this if it helps making faster progress.

rsalevsky avatar Nov 08 '16 21:11 rsalevsky

We save the duplicated code for the gem definition.

I agree that's a benefit, but only a very small one which is outweighed by the other considerations below:

You just need to run one command to sync to the remote and see the results.

This is mixing two completely different things. One is syncing to a remote server, which is useful for testing deployed code, and the other is running unit tests directly from within a development environment. Sometimes you might want to do one, sometimes the other, and sometimes both at the same time. So it doesn't make sense to couple them together.

Other reasons:

  • It must be possible to update the code and the corresponding Guardfile in a single PR, for example if you add a new subdirectory or filetype which is not covered by the existing patterns. This is pretty important.
  • It should be possible to quickly check out just crowbar-core and hack on it without requiring other repos. This is not so important but still worth having.

aspiers avatar Nov 08 '16 23:11 aspiers

Rebased

aspiers avatar Nov 24 '16 21:11 aspiers