mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +02:00
Merge pull request #772 from wren/windows-tests-766
Skip Broken Windows Tests
This commit is contained in:
commit
9d9f61ac1e
5 changed files with 27 additions and 18 deletions
|
@ -20,6 +20,7 @@ Feature: Basic reading and writing to a journal
|
||||||
When we run "jrnl -n 1"
|
When we run "jrnl -n 1"
|
||||||
Then the output should contain "2013-07-23 09:00 A cold and stormy day."
|
Then the output should contain "2013-07-23 09:00 A cold and stormy day."
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Writing an empty entry from the editor
|
Scenario: Writing an empty entry from the editor
|
||||||
Given we use the config "editor.yaml"
|
Given we use the config "editor.yaml"
|
||||||
When we open the editor and enter ""
|
When we open the editor and enter ""
|
||||||
|
@ -40,14 +41,6 @@ Feature: Basic reading and writing to a journal
|
||||||
When we run "jrnl -on 'june 6 2013' --short"
|
When we run "jrnl -on 'june 6 2013' --short"
|
||||||
Then the output should be "2013-06-10 15:40 Life is good."
|
Then the output should be "2013-06-10 15:40 Life is good."
|
||||||
|
|
||||||
Scenario: Emoji support
|
|
||||||
Given we use the config "basic.yaml"
|
|
||||||
When we run "jrnl 23 july 2013: 🌞 sunny day. Saw an 🐘"
|
|
||||||
Then we should see the message "Entry added"
|
|
||||||
When we run "jrnl -n 1"
|
|
||||||
Then the output should contain "🌞"
|
|
||||||
and the output should contain "🐘"
|
|
||||||
|
|
||||||
Scenario: Writing an entry at the prompt
|
Scenario: Writing an entry at the prompt
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl" and enter "25 jul 2013: I saw Elvis. He's alive."
|
When we run "jrnl" and enter "25 jul 2013: I saw Elvis. He's alive."
|
||||||
|
|
|
@ -13,17 +13,18 @@ Feature: Zapped Dayone bugs stay dead!
|
||||||
|
|
||||||
# fails when system time is UTC (as on Travis-CI)
|
# fails when system time is UTC (as on Travis-CI)
|
||||||
@skip
|
@skip
|
||||||
Scenario: Title with an embedded period on DayOne journal
|
Scenario: Title with an embedded period on DayOne journal
|
||||||
Given we use the config "dayone.yaml"
|
Given we use the config "dayone.yaml"
|
||||||
When we run "jrnl 04-24-2014: "Ran 6.2 miles today in 1:02:03. I'm feeling sore because I forgot to stretch.""
|
When we run "jrnl 04-24-2014: "Ran 6.2 miles today in 1:02:03. I'm feeling sore because I forgot to stretch.""
|
||||||
Then we should see the message "Entry added"
|
Then we should see the message "Entry added"
|
||||||
When we run "jrnl -1"
|
When we run "jrnl -1"
|
||||||
Then the output should be
|
Then the output should be
|
||||||
"""
|
"""
|
||||||
2014-04-24 09:00 Ran 6.2 miles today in 1:02:03.
|
2014-04-24 09:00 Ran 6.2 miles today in 1:02:03.
|
||||||
| I'm feeling sore because I forgot to stretch.
|
| I'm feeling sore because I forgot to stretch.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Opening an folder that's not a DayOne folder gives a nice error message
|
Scenario: Opening an folder that's not a DayOne folder gives a nice error message
|
||||||
Given we use the config "empty_folder.yaml"
|
Given we use the config "empty_folder.yaml"
|
||||||
When we run "jrnl Herro"
|
When we run "jrnl Herro"
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
Then we should see the message "Journal decrypted"
|
Then we should see the message "Journal decrypted"
|
||||||
And the journal should have 2 entries
|
And the journal should have 2 entries
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Encrypting a journal
|
Scenario: Encrypting a journal
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl --encrypt" and enter
|
When we run "jrnl --encrypt" and enter
|
||||||
|
@ -26,6 +27,7 @@
|
||||||
Then the output should contain "Password"
|
Then the output should contain "Password"
|
||||||
And the output should contain "2013-06-10 15:40 Life is good"
|
And the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Mistyping your password
|
Scenario: Mistyping your password
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl --encrypt" and enter
|
When we run "jrnl --encrypt" and enter
|
||||||
|
@ -43,6 +45,7 @@
|
||||||
Then the output should contain "Password"
|
Then the output should contain "Password"
|
||||||
And the output should contain "2013-06-10 15:40 Life is good"
|
And the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Storing a password in Keychain
|
Scenario: Storing a password in Keychain
|
||||||
Given we use the config "multiple.yaml"
|
Given we use the config "multiple.yaml"
|
||||||
When we run "jrnl simple --encrypt" and enter
|
When we run "jrnl simple --encrypt" and enter
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def before_feature(context, feature):
|
def before_feature(context, feature):
|
||||||
|
@ -9,6 +10,10 @@ def before_feature(context, feature):
|
||||||
feature.skip("Marked with @skip")
|
feature.skip("Marked with @skip")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if "skip_win" in feature.tags and "win32" in sys.platform:
|
||||||
|
feature.skip("Skipping on Windows")
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def before_scenario(context, scenario):
|
def before_scenario(context, scenario):
|
||||||
"""Before each scenario, backup all config and journal test data."""
|
"""Before each scenario, backup all config and journal test data."""
|
||||||
|
@ -36,6 +41,10 @@ def before_scenario(context, scenario):
|
||||||
scenario.skip("Marked with @skip")
|
scenario.skip("Marked with @skip")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if "skip_win" in scenario.effective_tags and "win32" in sys.platform:
|
||||||
|
scenario.skip("Skipping on Windows")
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
def after_scenario(context, scenario):
|
def after_scenario(context, scenario):
|
||||||
"""After each scenario, restore all test data and remove working_dirs."""
|
"""After each scenario, restore all test data and remove working_dirs."""
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
Feature: Upgrading Journals from 1.x.x to 2.x.x
|
Feature: Upgrading Journals from 1.x.x to 2.x.x
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Upgrade and parse journals with square brackets
|
Scenario: Upgrade and parse journals with square brackets
|
||||||
Given we use the config "upgrade_from_195.json"
|
Given we use the config "upgrade_from_195.json"
|
||||||
When we run "jrnl -9" and enter "Y"
|
When we run "jrnl -9" and enter "Y"
|
||||||
|
@ -11,6 +12,7 @@ Feature: Upgrading Journals from 1.x.x to 2.x.x
|
||||||
"""
|
"""
|
||||||
Then the journal should have 2 entries
|
Then the journal should have 2 entries
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Upgrading a journal encrypted with jrnl 1.x
|
Scenario: Upgrading a journal encrypted with jrnl 1.x
|
||||||
Given we use the config "encrypted_old.json"
|
Given we use the config "encrypted_old.json"
|
||||||
When we run "jrnl -n 1" and enter
|
When we run "jrnl -n 1" and enter
|
||||||
|
@ -22,6 +24,7 @@ Feature: Upgrading Journals from 1.x.x to 2.x.x
|
||||||
Then the output should contain "Password"
|
Then the output should contain "Password"
|
||||||
and the output should contain "2013-06-10 15:40 Life is good"
|
and the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
|
@skip_win
|
||||||
Scenario: Upgrade and parse journals with little endian date format
|
Scenario: Upgrade and parse journals with little endian date format
|
||||||
Given we use the config "upgrade_from_195_little_endian_dates.json"
|
Given we use the config "upgrade_from_195_little_endian_dates.json"
|
||||||
When we run "jrnl -9" and enter "Y"
|
When we run "jrnl -9" and enter "Y"
|
||||||
|
|
Loading…
Add table
Reference in a new issue