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

Already on GitHub? Sign in to your account

Autotest failed results regexp doesnt match when colour is used #251

Closed
JonRowe opened this Issue Dec 14, 2010 · 1 comment

Comments

Projects
None yet
1 participant
Owner

JonRowe commented Dec 14, 2010

The regular expression in rspec-core 2.3.0 ( lib/autotest/rspec2.rb: 16 )

self.failed_results_re = /^\s_\d+).\n\s+Failure.(?:\n.)?(\n\s+#\s(.)?:\d+(?::._)?)+$/m

Doesn't match failed specs correctly with autotest-standalone when colours are used in the output. This causes unexpected behaviour with autotest and prevents cucumber from correctly running features at appropriate moments.

Patch at => https://gist.github.com/740549

self.failed_results_re = /^\s_\d+).\n\s+(?:\e[\d_m)?Failure.(?:\n.)?(\n(?:\e[\d_m)?\s+#\s(.)?:\d+(?::._)?)+$/m

Is the original regular expression modified to correct this behaviour by ignoring colour codes.

Owner

JonRowe commented Jan 25, 2011

Fix bug matching failures for autotest with colorized output.

This issue was closed.

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