Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
gotanda.pm#2_2014-09-17
1. テスト自動生成の提案
Proposal of automatic generation of test
Gotanda.pm #2 2014/09/17
All Copyrights reserved by @akihiro_0228, 2014
テスト自動生成の提案
Proposal of automatic generation of test
@akihiro_0228
2. 史上最速のテスト
Testing the fastest ever
Gotanda.pm #2 2014/09/17
All Copyrights reserved by @akihiro_0228, 2014
テスト自動生成の提案
Proposal of automatic generation of test
@akihiro_0228
> 本当は
3. 史上最速のテスト
Testing the fastest ever
Gotanda.pm #2 2014/09/17
All Copyrights reserved by @akihiro_0228, 2014
テスト自動生成の提案
Proposal of automatic generation of test
@akihiro_0228
> さすがに
4. あきひろ
All Copyrights reserved by @akihiro_0228, 2014
4
@akihiro_0228
Perl歴 半年ぐらい
テスト自動生成の提案
Proposal of automatic generation of test
> 自己紹介
5. テスト自動生成の提案> 注意5
このスライドには
!
茶番要素
TDDへの反逆要素
!
が含まれております
All Copyrights reserved by @akihiro_0228, 2014
Proposal of automatic generation of test
6. テスト自動生成の提案> 作ってるもの
All Copyrights reserved by @akihiro_0228, 2014
6
Test::Gene
Proposal of automatic generation of test
7. テスト自動生成の提案> 作ってるもの
All Copyrights reserved by @akihiro_0228, 2014
7
何はともあれ
Proposal of automatic generation of test
8. テスト自動生成の提案> 作ってるもの
All Copyrights reserved by @akihiro_0228, 2014
8
DEMO
Proposal of automatic generation of test
9. All Copyrights reserved by @akihiro_0228, 2014
9
いや、
テスト自動生成の提案> 茶番乙
Proposal of automatic generation of test
10. テスト自動生成の提案> 茶番乙
All Copyrights reserved by @akihiro_0228, 2014
10
Proposal of automatic generation of test
こんな茶番に付き合っていただいて
11. テスト自動生成の提案> 茶番乙
All Copyrights reserved by @akihiro_0228, 2014
11
Proposal of automatic generation of test
ありがとうございます
12. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
12
真面目に
Proposal of automatic generation of test
13. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
13
Proposal of automatic generation of test
何やったか説明します
14. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
14
Test::Gene
テスト自動生成ツール
Proposal of automatic generation of test
15. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
15
Path::Tiny
lib以下のモジュールをなめる
Proposal of automatic generation of test
16. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
16
Class::Inspector
各モジュール内で定義されている
メソッドを取得する
Proposal of automatic generation of test
17. All Copyrights reserved by @akihiro_0228, 2014
17
つまり
テスト自動生成の提案> 説明
Proposal of automatic generation of test
18. テスト自動生成の提案> 説明
All Copyrights reserved by @akihiro_0228, 2014
18
AAA.pm
sub hoge {}
Dir
BBB.pm
sub fuga {}
sub piyo {}
Proposal of automatic generation of test
19. All Copyrights reserved by @akihiro_0228, 2014
19
AAA.pm
sub hoge {}
Dir
BBB.pm
sub fuga {}
sub piyo {}
aaa.t
subtest ‘hoge’ => sub {};
dir
bbb.t
subtest ‘fuga’ => sub {};
subtest ‘piyo’ => sub {};
テスト自動生成の提案> 説明
Proposal of automatic generation of test
20. テスト自動生成の提案> やりたいこと
All Copyrights reserved by @akihiro_0228, 2014
20
Proposal of automatic generation of test
AAA.pm
sub hoge {
if () {
return XXX;
}
elsif () {
return YYY;
}
else {
return ZZZ;
}
}
21. All Copyrights reserved by @akihiro_0228, 2014
21
AAA.pm
sub hoge {
if () {
return XXX;
}
elsif () {
return YYY;
}
else {
return ZZZ;
}
}
aaa.t
subtest ‘hoge’ => sub {
subtest ‘XXX’ => sub {
};
subtest ‘YYY’ => sub {
!
};
subtest ‘ZZZ’ => sub {
!
};
};
テスト自動生成の提案> やりたいこと
Proposal of automatic generation of test
22. テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
22
Test::Gene
Proposal of automatic generation of test
23. ???
テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
23
Test::Gene
Proposal of automatic generation of test
24. Generate
テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
24
Test::Gene
Proposal of automatic generation of test
25. Generate
All Copyrights reserved by @akihiro_0228, 2014
25
Test::Gene
テストを作る
テスト自動生成の提案> 余談
Proposal of automatic generation of test
26. ???
テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
26
Test::Gene
Proposal of automatic generation of test
27. ジェネ男
テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
27
Test::Gene
Proposal of automatic generation of test
28. ジェネ男
テスト自動生成の提案> 余談
All Copyrights reserved by @akihiro_0228, 2014
28
Test::Gene
ちょーいけてるテスト
Proposal of automatic generation of test