Skip to content

Conversation

@tleonhardt
Copy link
Member

Transcript testing now strips ANSI escape codes from the current line and current prompt before comparing the start of the current line with the current prompt to see if it is a command.

This makes it easier to use transcript testing with applications that colorize the prompt.

This closes #195

Transcript testing now strips ANSI escape codes from the current line and current prompt before comparing the start of the current line with the current prompt to see if it is a command.

This makes it easier to use transcript testing with applications that colorize the prompt.
@tleonhardt tleonhardt added this to the 0.7.6 milestone Aug 2, 2017
@tleonhardt tleonhardt self-assigned this Aug 2, 2017
@codecov
Copy link

codecov bot commented Aug 2, 2017

Codecov Report

Merging #196 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #196      +/-   ##
=========================================
+ Coverage   97.08%   97.1%   +0.01%     
=========================================
  Files           1       1              
  Lines        1134    1139       +5     
=========================================
+ Hits         1101    1106       +5     
  Misses         33      33
Impacted Files Coverage Δ
cmd2.py 97.1% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e74cfd...ff66353. Read the comment docs.

@tleonhardt tleonhardt merged commit 68d3aa6 into master Aug 2, 2017
@tleonhardt tleonhardt deleted the strip_ansi branch August 2, 2017 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

transcript testing works poorly when prompt can contain ANSI escape codes

2 participants