From 58457d7a33ae1cfb784d1fe3d650a94c2182397a Mon Sep 17 00:00:00 2001 From: samuelgregorovic Date: Tue, 6 Jul 2021 18:30:14 +0200 Subject: [PATCH] feature test added --- features/config_file.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 features/config_file.feature diff --git a/features/config_file.feature b/features/config_file.feature new file mode 100644 index 00000000..49c33850 --- /dev/null +++ b/features/config_file.feature @@ -0,0 +1,17 @@ +Feature: Implementing usage of alternate configuration file + + Scenario: Use personal config stored in user's home folder + Given we use config file path "work-config.yaml" by running + `jrnl --config-file ~/work-config.yaml`, which contains valid + configuration options for `jrnl`, the program should use + configuration within the given configuration file specified. + + Scenario: Use not existing configuration file + Given we use the config path "some-config.yaml" which does not point + to an existing file program should exit with an error explaining the + situation. The output should be + + """ + Alternate configuration file not found at path specified. + Exiting. + """