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 collaboratorSpecifying which specs to run
In order to run the specs I want
As a spec runner
I want to specify which specs to run
- Scenarios
-
- Default to *Spec.php within a ./spec directory
- Specify a directory
- Specifying multiple directories
- Specifying directories and files at the same time
- Specifying a glob
- Default to *Spec.php within a ./spec directory
-
- Given
-
a file named "spec/TestSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { }); });
- And
-
a file named "spec/Test.php" with:
<?php describe("a thing", function() { it("does things", function() { throw new Exception(); }); });
- When
-
I run
dspec
- Then
- the output should contain "1 example passed"
- Specify a directory
-
- Given
-
a file named "spec/TestSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { }); });
- And
-
a file named "spec/Test.php" with:
<?php describe("a thing", function() { it("does things", function() { throw new Exception(); }); });
- When
-
I run
dspec spec
- Then
- the output should contain "1 example passed"
- Specifying multiple directories
-
- Given
-
a file named "spec/TestSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { }); });
- And
-
a file named "spec2/TestSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { throw new Exception(); }); });
- When
-
I run
dspec spec spec2
- Then
- the output should contain "1 of 2 examples failed"
- Specifying directories and files at the same time
-
- Given
-
a file named "spec/TestSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { }); });
- And
-
a file named "spec2/Test.php" with:
<?php describe("a thing", function() { it("does things", function() { throw new Exception(); }); });
- When
-
I run
dspec spec spec2/Test.php
- Then
- the output should contain "1 of 2 examples failed"
- Specifying a glob
-
- Given
-
a file named "spec/IncludeSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { }); });
- And
-
a file named "spec/ExcludeSpec.php" with:
<?php describe("a thing", function() { it("does things", function() { throw new Exception(); }); });
- When
-
I run
dspec spec/Include*
- Then
- the output should contain "1 example passed"
Last published over 5 years ago by Dave Marshall.