cardio icon indicating copy to clipboard operation
cardio copied to clipboard

Make cardio git-bisect-friendly

Open msiebuhr opened this issue 12 years ago • 1 comments

It would be rather nice to execute something like the following:

git bisect start <bad> <good> -- cardio --check "css.countByColor.#eee > 1"

Then it would find the revision between good and bad here the check begins to fail (i.e. the color #eee drops below one).

msiebuhr avatar Jan 31 '13 12:01 msiebuhr

Added experimental implementation in 0f271ac. Requires the check parameter to be valid JavaScript, so you need to use bracket notation for things like #eee and class.

cardio example/index.html --check 'html.countByAttributeName.href > 25' ; echo $?

Outputs 0, whereas

cardio example/index.html --check 'html.countByAttributeName.href > 23' ; echo $?

outputs 1 :)

papandreou avatar Jan 31 '13 17:01 papandreou