-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filters properties based on a criteria
Allows properties to be filtered based on a supplied criteria. This allows running of a subtest of property tests for a given specification. The test criteria is specified by the '-f' option. Eg: Given the following properties for a String specification: 1. StringProps.String map 2. StringProps.String reverse when supplied with a "map" criteria, Scalacheck will only run the map property. 1. StringProps.String map On the commandline: scala -cp scalacheck.jar:. StringProps -f "map" Through SBT: test-only *StringProps -- -f map The primary motivation for creating this functionality was so that I could selectively run a subset of properties that were expensive to run every time. It also helps focus on the current property being tested without having to run all properties of a specification each time. I'm not sure I have covered all the bases here - I have tested this through SBT and the commandline, but I wonder if there are any other scenarios I should test this through. I'm happy to get some feedback on this and improve it as necessary.
- Loading branch information
Showing
4 changed files
with
93 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,7 @@ target | |
|
||
/examples/simple-sbt/project/ | ||
/examples/simple-sbt/target/ | ||
|
||
# ide | ||
*.ctags_srcs/ | ||
.tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters