Files
wehub-resource-sync d68f003000
CI / Change detection (push) Has been cancelled
CI / Version drift (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Workflow RLM cache (push) Has been cancelled
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / npm wrapper smoke (push) Has been cancelled
CI / Mobile runtime smoke (push) Has been cancelled
CI / Workflow lint (push) Has been cancelled
CI / Documentation (push) Has been cancelled
Web Frontend / Lint & Type Check (push) Failing after 1s
Auto-close harvested PRs / close (push) Failing after 1s
cargo-deny / cargo-deny (bans licenses sources) (push) Failing after 1s
Security audit / cargo-audit (push) Failing after 1s
Sync to CNB / sync (push) Failing after 1s
cargo-deny / cargo-deny (advisories) (push) Failing after 3s
Web Frontend / Deploy to Cloudflare (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:08:23 +08:00

32 lines
1.6 KiB
Gherkin

@long-running
# [LONG RUNNING] Plugin discovery and listing acceptance tests. Run with:
# cargo test -p codewhale-tui --bin codewhale-tui --features long-running-tests plugin_e2e_acceptance -- --test-threads=1
Feature: Plugin discovery and listing
Scenario: Plugin scripts are discovered from the configured plugin directory
Given an offline CodeWhale workspace with a configured plugin directory
And the plugin directory contains:
| name | description | approval |
| greet | Say hello to the user | auto |
| audit | Run a security audit | required |
| summarizer | Summarize the given input | suggest |
When the plugin scanner discovers plugins
Then the scanner should report 3 plugins
And the scanned plugin "greet" should have "Say hello to the user" as description
And the scanned plugin "greet" should have "auto" as approval
And the scanned plugin "audit" should have "required" as approval
And the scanned plugin "summarizer" should have "suggest" as approval
And the scanned plugin "missing-plugin" should not be found
Scenario: Empty plugin directory reports no plugins
Given an offline CodeWhale workspace with a configured plugin directory
And the plugin directory is empty
When the plugin scanner discovers plugins
Then the scanner should report 0 plugins
Scenario: Missing plugin directory reports the path
Given an offline CodeWhale workspace with a configured plugin directory
And the plugin directory does not exist
When the plugin scanner runs
Then the scanner should report the missing directory path