Guide through Behavior-Driven Development workflow
Guides developers through Behavior-Driven Development workflow using Given-When-Then format.
/plugin marketplace add AsiaOstrich/universal-dev-standards/plugin install universal-dev-standards@asia-ostrichbehavior or scenario to implement | 要實作的行為或場景[!WARNING] Experimental Feature / 實驗性功能
This feature is under active development and may change significantly in v4.0. 此功能正在積極開發中,可能在 v4.0 中有重大變更。
Guide through the Behavior-Driven Development (BDD) workflow using Given-When-Then format.
引導行為驅動開發(BDD)流程,使用 Given-When-Then 格式。
When /bdd is invoked:
當調用 /bdd 時:
See methodology-system for full methodology tracking.
┌───────────────────────────────────────────────────────┐
│ │
│ ┌─────────┐ ┌───────────┐ ┌──────────┐ ┌────┐ │
│ │DISCOVERY│ ► │FORMULATION│ ► │AUTOMATION│ ► │DOCS│ │
│ └─────────┘ └───────────┘ └──────────┘ └────┘ │
│ ▲ │ │
│ └────────────────────────────────────┘ │
│ │
└───────────────────────────────────────────────────────┘
Feature: User Login
As a registered user
I want to log in to my account
So that I can access my personal dashboard
Scenario: Successful login with valid credentials
Given I am on the login page
And I have a registered account with email "user@example.com"
When I enter my email "user@example.com"
And I enter my password "correctpassword"
And I click the login button
Then I should be redirected to my dashboard
And I should see a welcome message
Scenario: Failed login with invalid password
Given I am on the login page
When I enter my email "user@example.com"
And I enter my password "wrongpassword"
And I click the login button
Then I should see an error message "Invalid credentials"
And I should remain on the login page
BDD works best with collaboration:
| Role | Focus | 角色 | 關注點 |
|---|---|---|---|
| Business | What & Why | 業務 | 什麼和為什麼 |
| Development | How | 開發 | 如何實現 |
| Testing | What if | 測試 | 假設情況 |
/bdd - Start interactive BDD session/bdd "user can reset password" - BDD for specific feature/bdd login-feature.feature - Work with existing feature file