- Chef または PowerShell DSC でクリーンな環境にソフトをインストールする
- UI Automation をラップした 内部 DSL で対象ソフトを操作
- 画面をキャプチャして指定サイズに切り取る
- 指定ファイルに保存する
- 2~4 を繰り返す
- ImageMagick を使用して、作成した画像とリポジトリ内の画像を比較
- 差異がある画像をコミットする
- 7 の画像名をメールで通知
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<Scenario>] | |
let When_removing_an_3_from_a_small_list_it_should_not_contain_3() = | |
Given [1;2;3;4;5] // "Arrange" テストコンテキスト | |
|> When removing 3 // "Act" | |
|> It shouldn't contain 3 // "Assert" | |
|> It should contain 4 // 別の表明 | |
|> Verify // シナリオの検証 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: When calculating fac 0 it should equal 0 | |
- Given 0 | |
– When calculating factorial | |
=> It should equal 1 | |
==> OK | |
Scenario: When calculating fac 1 it should equal 1 | |
- Given 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CarSellingLib | |
{ | |
public enum CarType | |
{ | |
BMW | |
} | |
} | |
namespace CarSellingLib | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. モジュールを定義する | |
module CarSpec | |
// 2. NaturalSpec 名前空間を開く | |
open NaturalSpec | |
// 3. プロジェクトの名前空間を開く | |
open CarSellingLib | |
// 4. テストコンテキストを定義する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: When selling a car for 1000 it should fail with Need More Money | |
- Should fail… | |
– As Bert | |
– When selling a car for 1000 | |
Scenario: When selling a car for 19000 it should equal the LameCar | |
- As Bert | |
– When selling a car for 19000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[<Scenario>] | |
let When_calculating_fac_5_it_should_equal_120() = | |
Given 5 | |
|> When calculating factorial | |
|> It should equal 120 | |
|> Verify | |
[<Scenario>] | |
let When_calculating_fac_1_it_should_equal_1() = | |
Given 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. モジュールを定義する | |
module CarSpec | |
// 2. NaturalSpec 名前空間を開く | |
open NaturalSpec | |
// 3. プロジェクトの名前空間を開く | |
open CarSellingLib | |
// 4. テストコンテキストを定義する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scenario: When selling a car for 30000 it should equal the DreamCar mocked | |
- As Bert | |
- With Mocking | |
- When selling a car for 30000 | |
=> It should equal BMW (200 HP) | |
=> It should not equal Fiat (45 HP) | |
==> OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace CarSellingLib | |
{ | |
public enum CarType | |
{ | |
Fiat, | |
BMW | |
} | |
} | |
namespace CarSellingLib |
OlderNewer