Skip to content

Commit

Permalink
strip out ansi characters (fixes aghassemi#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamund Ferguson committed Apr 26, 2016
1 parent 93f3981 commit c56aac1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "1.3.1",
"description": "TAP to xUnit XML converter.",
"main": "lib/converter.js",
"bin" : {
"tap-xunit" : "./bin/tap-xunit",
"txunit" : "./bin/tap-xunit"
"bin": {
"tap-xunit": "./bin/tap-xunit",
"txunit": "./bin/tap-xunit"
},
"scripts": {
"test": "node test/runner.js"
Expand Down Expand Up @@ -34,11 +34,12 @@
"concat-stream": "~1.5.1"
},
"dependencies": {
"through2": "~2.0.0",
"xmlbuilder": "~4.1.0",
"duplexer": "~0.1.1",
"minimist": "~1.2.0",
"strip-ansi": "^3.0.1",
"tap-parser": "~1.2.2",
"xtend": "~4.0.0",
"minimist": "~1.2.0"
"through2": "~2.0.0",
"xmlbuilder": "~4.1.0",
"xtend": "~4.0.0"
}
}
9 changes: 9 additions & 0 deletions test/expected/ansi
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<testsuites>
<testsuite name="test1 › this is ta thing" tests="1" failures="0" errors="0">
<testcase name="#1 test1 › this is ta thing"/>
</testsuite>
<testsuite name="test2 › this is ta thing" tests="1" failures="0" errors="0">
<testcase name="#2 test2 › this is ta thing"/>
</testsuite>
</testsuites>
10 changes: 10 additions & 0 deletions test/input/ansi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TAP version 13
# test1 › this is ta thing
ok 1 - test1 › this is ta thing
# test2 › this is ta thing
ok 2 - test2 › this is ta thing

1..2
# tests 2
# pass 2
# fail 0

0 comments on commit c56aac1

Please sign in to comment.