-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yegor Bugayenko
committed
Aug 7, 2014
1 parent
0affccf
commit 3793c85
Showing
4 changed files
with
50 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: Command Line Processing | ||
As a source code writer I want to be able to | ||
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" | ||
|
||
Scenario: Simple puzzles collecting | ||
Given I have a "Sample.java" file with content: | ||
""" | ||
public class Main { | ||
/** | ||
* @todo #13 Let's do it later, dude | ||
* or maybe even never :) | ||
*/ | ||
public void main(String[] args) { | ||
// later | ||
} | ||
} | ||
""" | ||
When I run bin/pdd with "-v -s . -f out.xml" | ||
Then XML file "out.xml" matches "/puzzles[count(puzzle)=1]" |
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