features/cli.feature in pdd-0.3 vs features/cli.feature in pdd-0.4

- old
+ new

@@ -3,11 +3,11 @@ call PDD as a command line tool Scenario: Help can be printed When I run bin/pdd with "-h" Then Exit code is zero - And Stdout contains "Usage: pdd" + And Stdout contains "-v, --verbose" Scenario: Simple puzzles collecting Given I have a "Sample.java" file with content: """ public class Main { @@ -34,5 +34,25 @@ ~~ """ When I run bin/pdd with "> out.xml" Then Exit code is zero And XML file "out.xml" matches "/puzzles[count(puzzle)=1]" + + Scenario: Excluding unnecessary files + Given I have a "a/b/c/test.txt" file with content: + """ + ~~ @todo #44 some puzzle to be excluded + """ + And I have a "f/g/h/hello.md" file with content: + """ + ~~ @todo #44 some puzzle to be excluded as well + """ + When I run bin/pdd with "-e **/*.md --exclude **/*.txt > out.xml" + Then Exit code is zero + And XML file "out.xml" matches "/puzzles[count(puzzle)=0]" + + Scenario: Rejects unknown options + Given I have a "test.txt" file with content: + """ + """ + When I run bin/pdd with "--some-unknown-option" + Then Exit code is not zero