mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-03 23:16:14 +02:00
[Test] run different tests with or without the external plugins installed
This commit is contained in:
parent
aa6e0a7c84
commit
6c98c7cdfc
4 changed files with 123 additions and 53 deletions
|
@ -17,15 +17,5 @@ Feature: Functionality of jrnl outside of actually handling journals
|
|||
Then the output should contain "jrnl"
|
||||
And the output should contain "Python"
|
||||
|
||||
Scenario Outline: List 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.plugins.exporter.<plugin_source>_exporter"
|
||||
Examples:
|
||||
| plugin_name | plugin_source | version |
|
||||
| md | markdown | v2.7.2-beta |
|
||||
| testing | testing | v0.0.1 |
|
||||
|
||||
@todo
|
||||
Scenario: Listing available journals
|
||||
|
|
60
features/plugins.feature
Normal file
60
features/plugins.feature
Normal file
|
@ -0,0 +1,60 @@
|
|||
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 |
|
Loading…
Add table
Add a link
Reference in a new issue