troubleshooting windows test failures on travis

This commit is contained in:
Jonathan Wren 2020-10-17 13:31:50 -07:00
parent 6df0db1832
commit b438f58ddb
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A

View file

@ -45,6 +45,7 @@ Feature: Writing new entries.
Scenario Outline: Writing an empty entry from the editor should yield "Nothing saved to file" message Scenario Outline: Writing an empty entry from the editor should yield "Nothing saved to file" message
Given we use the config "<config_file>.yaml" Given we use the config "<config_file>.yaml"
And we use the password "test" if prompted
When we open the editor and enter nothing When we open the editor and enter nothing
Then the error output should contain "[Nothing saved to file]" Then the error output should contain "[Nothing saved to file]"
@ -53,48 +54,23 @@ Feature: Writing new entries.
| editor | | editor |
| editor_empty_folder | | editor_empty_folder |
| dayone | | dayone |
| basic_encrypted |
# this might need a new step for editors + encryption | basic_onefile |
@todo
Scenario: Writing an empty entry from the editor in encrypted journal should yield "Nothing saved to file" message
Given we use the config "editor_encrypted.yaml"
#When we open the editor and enter nothing
#Then we should see the message "[Nothing saved to file]"
Scenario Outline: Writing an empty entry from the command line with no editor should yield nothing Scenario Outline: Writing an empty entry from the command line with no editor should yield nothing
Given we use the config "<config_file>.yaml" Given we use the config "<config_file>.yaml"
And we use the password "test" if prompted
When we run "jrnl" and enter nothing When we run "jrnl" and enter nothing
Then the output should be empty Then the output should be empty
And the error output should contain "Writing Entry; on a blank line" And the error output should contain "Writing Entry; on a blank line"
And the editor should not have been called And the editor should not have been called
Examples: configs Examples: configs
| config_file | | config_file |
| simple | | simple |
| empty_folder | | empty_folder |
| basic_encrypted |
@todo # | dayone | @todo
Scenario: Writing an empty entry from the command line in DayOne journal
# There is a problem with DayOne behave tests and console input
@todo
Scenario: Writing an empty entry from the command line in encrypted journal
# Need some steps for encryption + editor
Scenario Outline: Writing an empty entry from the editor should yield nothing
Given we use the config "<config_file>.yaml"
And we use the password "bad doggie no biscuit" if prompted
When we run "jrnl" and enter nothing
Then the output should be empty
And the error output should contain "[Nothing saved to file]"
And the editor should have been called
Examples: configs
| config_file |
| editor |
| editor_empty_folder |
| dayone |
| editor_encrypted |
Scenario Outline: Writing an entry does not print the entire journal Scenario Outline: Writing an entry does not print the entire journal
# https://github.com/jrnl-org/jrnl/issues/87 # https://github.com/jrnl-org/jrnl/issues/87