Skip to content

Commit 0da73ab

Browse files
committed
test: Document revision parsing as feature test
1 parent 2a224ff commit 0da73ab

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

features/revision-parsing.feature

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Feature: Parse revision specified on command line
2+
3+
Scenario: HEAD
4+
Given command line: glv HEAD
5+
Then found revision
6+
7+
Scenario: Branch
8+
Given command line: glv master
9+
Then found revision
10+
11+
Scenario: Short Commit
12+
Given command line: glv 03de9b6
13+
Then found revision
14+
15+
Scenario: Short Commit Range
16+
Given command line: glv 840a98e..03de9b6
17+
When found revision
18+
Then revision log has 9 commits
19+
20+
Scenario: Open Range
21+
Given command line: glv 840a98e..
22+
When found revision
23+
Then revision log has more then 9 commits
24+
25+
Scenario: HEAD Range
26+
Given command line: glv HEAD~2..HEAD
27+
When found revision
28+
Then revision log has 2 commits
29+
30+
Scenario: HEAD Open range
31+
Given command line: glv HEAD~2..
32+
When found revision
33+
Then revision log has 2 commits

0 commit comments

Comments
 (0)