mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-19 04:28:31 +02:00
60 lines
3.5 KiB
Gherkin
60 lines
3.5 KiB
Gherkin
Feature: Functionality of Importer and Exporter Plugins
|
|
|
|
not @external_plugins
|
|
Scenario Outline: List buildin plugin names in --version
|
|
Given We use the config "basic_onefile.yaml"
|
|
When We run "jrnl --version"
|
|
Then the output should contain pyproject.toml version
|
|
And The output should contain "<plugin_name> : <version> from jrnl.<source>.<type>.<filename>"
|
|
And the output should not contain "contrib"
|
|
|
|
Examples:
|
|
| plugin_name | version | source | type | filename |
|
|
| jrnl | v2.7.2-beta | plugins | importer | jrnl |
|
|
| boxed | v2.7.2-beta | plugins | exporter | fancy |
|
|
| dates | v2.7.2-beta | plugins | exporter | dates |
|
|
| fancy | v2.7.2-beta | plugins | exporter | fancy |
|
|
| json | v2.7.2-beta | plugins | exporter | json |
|
|
| markdown | v2.7.2-beta | plugins | exporter | markdown |
|
|
| md | v2.7.2-beta | plugins | exporter | markdown |
|
|
| tags | v2.7.2-beta | plugins | exporter | tag |
|
|
| text | v2.7.2-beta | plugins | exporter | text |
|
|
| txt | v2.7.2-beta | plugins | exporter | text |
|
|
| xml | v2.7.2-beta | plugins | exporter | xml |
|
|
| yaml | v2.7.2-beta | plugins | exporter | yaml |
|
|
|
|
@external_plugins
|
|
Scenario Outline: List external plugin names in --version
|
|
Given We use the config "basic_onefile.yaml"
|
|
When We run "jrnl --version"
|
|
Then the output should contain pyproject.toml version
|
|
And The output should contain "<plugin_name> : <version> from jrnl.<source>.<type>.<filename>"
|
|
Examples:
|
|
| plugin_name | version | source | type | filename |
|
|
| jrnl | v2.7.2-beta | plugins | importer | jrnl |
|
|
| json | v1.0.0 | contrib | importer | json |
|
|
| boxed | v2.7.2-beta | plugins | exporter | fancy |
|
|
| dates | v2.7.2-beta | plugins | exporter | dates |
|
|
| fancy | v2.7.2-beta | plugins | exporter | fancy |
|
|
| json | v1.0.0 | contrib | exporter | json |
|
|
| markdown | v2.7.2-beta | plugins | exporter | markdown |
|
|
| md | v2.7.2-beta | plugins | exporter | markdown |
|
|
| tags | v2.7.2-beta | plugins | exporter | tag |
|
|
| text | v2.7.2-beta | plugins | exporter | text |
|
|
| txt | v1.0.0 | contrib | exporter | rot13 |
|
|
| xml | v2.7.2-beta | plugins | exporter | xml |
|
|
| yaml | v2.7.2-beta | plugins | exporter | yaml |
|
|
| rot13 | v1.0.0 | contrib | exporter | rot13 |
|
|
| testing | v0.0.1 | contrib | exporter | testing |
|
|
|
|
@external_plugins
|
|
Scenario Outline: Do not list overridden plugin names in --version
|
|
Given We use the config "basic_onefile.yaml"
|
|
When We run "jrnl --version"
|
|
Then the output should contain pyproject.toml version
|
|
And the output should not contain "<plugin_name> : <version> from jrnl.<source>.<type>.<filename>"
|
|
|
|
Examples:
|
|
| plugin_name | version | source | type | filename |
|
|
| json | v2.7.2-beta | plugins | exporter | json |
|
|
| txt | v2.7.2-beta | plugins | exporter | text |
|