Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

XUnit formatter note on how to redirect its output to a file #8

merged 4 commits into from over 2 years ago

2 participants

Guilherme J. Tramontina Marcin Bunsch
Guilherme J. Tramontina

Sorry about the sequence of 'bad' commits. I'm not used to rdoc and didn't have how/where to try it.

Guilherme J. Tramontina

Hey there. A gentle reminder about the pull request. :-) thanks

Marcin Bunsch marcinbunsch merged commit e7cd3fa into from August 19, 2011
Marcin Bunsch marcinbunsch closed this August 19, 2011
Marcin Bunsch

:) Thanks for the poke! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 9 additions and 2 deletions. Show diff stats Hide diff stats

  1. 11  README.rdoc
11  README.rdoc
Source Rendered
@@ -30,9 +30,15 @@ For details on how to use Jasmine, consult the Jasmine docs at
30 30
31 31
 === Formatters
32 32
-Currently Jessie ships with 2 formatters: progress and nested. By default it uses progress. If you want to use nested, you can do it by specifying the -f option:
+Currently Jessie ships with 3 formatters: progress, nested and xunit. By default it uses progress. If you want to use a different one, you can do it by specifying the -f option:
34 34
-  jessie spec -f nested
+  jessie -f [formatter_name] spec
+* Special note on *xunit*:
+Since this formatter is more useful when in a Continuous Integration environment, sending its output to an XML file would be the most common thing to do.
+Given that Jessie creates separate processes to execute the tests, simply sending the output to a file like "jessie -f xunit spec > test_results.xml" wouldn't work most of the times. So the following does the trick:
+  jessie -f xunit spec | cat > test_results.xml
36 42
37 43
 === Pending specs
38 44
@@ -96,3 +102,4 @@ jessie is largely based on The goal of
96 102
 === Copyright
97 103
98 104
 Copyright (c) 2011 Marcin Bunsch, Future Simple Inc. See LICENSE for details.

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.