To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorSpecify formatters on the command line
In order to get the output looking the way I want
As a developer
I need to specify the formatter
- Scenarios
-
- Specify a formatter on the command line
- Specify multiple formatters on the command line
- Specify an output file
- Specify a formatter on the command line
-
- Given
-
a file named "TestSpec.php" with:
<?php describe("dave", function() { it("passes", function() {}); it("fails", function() { fail(); }); });
- When
-
I run
dspec -f summary TestSpec.php
- Then
- the output should contain "1 of 2 examples failed"
- And
- the output should not contain ".."
- And
- the output should not contain "Failures:"
- Specify multiple formatters on the command line
-
- Given
-
a file named "TestSpec.php" with:
<?php describe("dave", function() { it("passes", function() {}); it("fails", function() { fail(); }); });
- When
-
I run
dspec -f summary -f failureTree TestSpec.php
- Then
- the output should contain "1 of 2 examples failed"
- And
- the output should contain "Failures:"
- And
- the output should not contain ".."
- Specify an output file
-
- Given
-
a file named "TestSpec.php" with:
<?php describe("dave", function() { it("passes", function() {}); it("fails", function() { fail(); }); });
- When
-
I run
dspec -f summary:out.log TestSpec.php
- Then
- the output should not contain "1 of 2 examples failed"
- And
- the file "out.log" should contain "1 of 2 examples failed"
Last published over 5 years ago by Dave Marshall.