update version tests, add new regex match behave step

This commit is contained in:
Jonathan Wren 2020-09-19 12:50:58 -07:00
parent a6b646bb44
commit 899dd5037b
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
2 changed files with 35 additions and 7 deletions

View file

@ -1,15 +1,21 @@
Feature: Core functionality of jrnl outside of actually handling journals
Feature: Functionality of jrnl outside of actually handling journals
Scenario: Displaying the version number
Given we use the config "basic.yaml"
When we run "jrnl --version"
Then we should get no error
Then the output should match "^jrnl version v\d+\.\d+\.\d+(-(alpha|beta))?$"
Scenario: Displaying the version number
Given we use the config "basic.yaml"
When we run "jrnl -v"
Then we should get no error
Then the output should contain "version"
Then the output should match "^jrnl version v\d+\.\d+\.\d+(-(alpha|beta))?$"
Scenario: --diagnostic runs without exceptions
Scenario: Running the diagnostic command
When we run "jrnl --diagnostic"
Then the output should contain "jrnl"
And the output should contain "Python"
@todo
Scenario: --list outputs to user without exceptions
Scenario: Listing available journals