我想了解BDD,我讀過有關嬰兒的步驟。他們如何工作?我試圖弄清楚。BDD:Baby步驟如何工作?
例如,使用以下功能:
Feature: Months and days to days
In order to see months and days as days
As a date conversion fan
I need a webpage where users can enter days and
months and convert them to days.
Scenario: Convert 12 months and 0 days to days
Given 「12」 months And 「0」 days
When I click on convert button
Then I should get: 360
我應該創建一個代碼,以使在步驟的方法轉換權,然後重構代碼,並把他們在課堂上還是應該先從類?
這看起來很簡單,但我很困惑。我想了解嬰兒的步驟,我不想破壞它...
謝謝。