Successfully reported this slideshow.
Your SlideShare is downloading. ×

目指せ、テストカバレッジ100%

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Better PR with SEO and RSS
Better PR with SEO and RSS
Loading in …3
×

Check these out next

1 of 61 Ad

More Related Content

Recently uploaded (20)

Advertisement

目指せ、テストカバレッジ100%

  1. 1. 目指せ! テストカバレッジ100% ふしはらかん(kan) / FreakOut Inc. Aim, Test coverage 100% 13年9月22日日曜日
  2. 2. LTの前に Before LT Apology 13年9月22日日曜日
  3. 3. LTの前に •お詫び Before LT Apology 13年9月22日日曜日
  4. 4. タイトルは釣りです The title of this presentation is deception 13年9月22日日曜日
  5. 5. 目指せ! テストカバレッジ100% ふしはらかん(precuredaisuki) / FreakOut Inc. 13年9月22日日曜日
  6. 6. 目指せ! テストカバレッジ100% ふしはらかん(precuredaisuki) / FreakOut Inc. 13年9月22日日曜日
  7. 7. 目指せ! テストカバレッジ100% ふしはらかん(precuredaisuki) / FreakOut Inc. 13年9月22日日曜日
  8. 8. 目指せ! テストカバレッジ100% ふしはらかん(precuredaisuki) / FreakOut Inc. 13年9月22日日曜日
  9. 9. テストカバレッジって? What is test coverage? Software testing is doing and test the percentage of how much of the software body 13年9月22日日曜日
  10. 10. テストカバレッジって? •ソフトウェアテストが What is test coverage? Software testing is doing and test the percentage of how much of the software body 13年9月22日日曜日
  11. 11. テストカバレッジって? •ソフトウェアテストが •ソフトウェア本体のどの程度の割合を What is test coverage? Software testing is doing and test the percentage of how much of the software body 13年9月22日日曜日
  12. 12. テストカバレッジって? •ソフトウェアテストが •ソフトウェア本体のどの程度の割合を •テスト対象としているか What is test coverage? Software testing is doing and test the percentage of how much of the software body 13年9月22日日曜日
  13. 13. 何が嬉しいか What do happy? Is important to be able to find the leak and bias of the test, do you seek the perfect it is not important 13年9月22日日曜日
  14. 14. 何が嬉しいか •あのメソッドのテスト忘れてた What do happy? Is important to be able to find the leak and bias of the test, do you seek the perfect it is not important 13年9月22日日曜日
  15. 15. 何が嬉しいか •あのメソッドのテスト忘れてた •あのパターンの時のテスト忘れてた What do happy? Is important to be able to find the leak and bias of the test, do you seek the perfect it is not important 13年9月22日日曜日
  16. 16. 何が嬉しいか •あのメソッドのテスト忘れてた •あのパターンの時のテスト忘れてた •等に気付ける What do happy? Is important to be able to find the leak and bias of the test, do you seek the perfect it is not important 13年9月22日日曜日
  17. 17. 何が嬉しいか •あのメソッドのテスト忘れてた •あのパターンの時のテスト忘れてた •等に気付ける •100%にすることが目標ではない What do happy? Is important to be able to find the leak and bias of the test, do you seek the perfect it is not important 13年9月22日日曜日
  18. 18. perlでやりたい I want to do in perl 13年9月22日日曜日
  19. 19. perlでやりたい •Devel::Coverが鉄板 I want to do in perl 13年9月22日日曜日
  20. 20. perlでやりたい •Devel::Coverが鉄板 cpanm  Devel::Cover cover  -­‐test I want to do in perl 13年9月22日日曜日
  21. 21. perlでやりたい •Devel::Coverが鉄板 cpanm  Devel::Cover cover  -­‐test I want to do in perl 13年9月22日日曜日
  22. 22. perlでやりたい •Devel::Coverが鉄板 cpanm  Devel::Cover cover  -­‐test I want to do in perl 13年9月22日日曜日
  23. 23. 問題点 See coverage reports generated for every test run it is not realistic Issues 13年9月22日日曜日
  24. 24. 問題点 •実行→HTML生成→確認は面倒 See coverage reports generated for every test run it is not realistic Issues 13年9月22日日曜日
  25. 25. 問題点 •実行→HTML生成→確認は面倒 •チームの場合の結果共有は? See coverage reports generated for every test run it is not realistic Issues 13年9月22日日曜日
  26. 26. そこでcoverallsですよ So it’s coveralls 13年9月22日日曜日
  27. 27. coverallsとは? What is coveralls? 13年9月22日日曜日
  28. 28. coverallsとは? • https://coveralls.io/ What is coveralls? 13年9月22日日曜日
  29. 29. coverallsとは? • https://coveralls.io/ • テストカバレッジをプロジェクト単位で表 示してくれるサービス What is coveralls? 13年9月22日日曜日
  30. 30. coverallsとは? • https://coveralls.io/ • テストカバレッジをプロジェクト単位で表 示してくれるサービス • Service that will display on a project-by-project basis test coverage What is coveralls? 13年9月22日日曜日
  31. 31. coverallsとは? • https://coveralls.io/ • テストカバレッジをプロジェクト単位で表 示してくれるサービス • Service that will display on a project-by-project basis test coverage • ruby / python 他の各言語に対応 What is coveralls? 13年9月22日日曜日
  32. 32. coverallsとは? • https://coveralls.io/ • テストカバレッジをプロジェクト単位で表 示してくれるサービス • Service that will display on a project-by-project basis test coverage • ruby / python 他の各言語に対応 • support many language What is coveralls? 13年9月22日日曜日
  33. 33. coverallsとは? • https://coveralls.io/ • テストカバレッジをプロジェクト単位で表 示してくれるサービス • Service that will display on a project-by-project basis test coverage • ruby / python 他の各言語に対応 • support many language • APIがある ← !! What is coveralls? 13年9月22日日曜日
  34. 34. 無いなら作ればいい Should I make if not 13年9月22日日曜日
  35. 35. 無いなら作ればいい •Devel::Cover::Report::Coveralls Should I make if not 13年9月22日日曜日
  36. 36. 無いなら作ればいい •Devel::Cover::Report::Coveralls •Devel::Coverのreport機構を利用 Should I make if not 13年9月22日日曜日
  37. 37. 無いなら作ればいい •Devel::Cover::Report::Coveralls •Devel::Coverのreport機構を利用 •coveralls.ioのAPIを叩く Should I make if not 13年9月22日日曜日
  38. 38. 使い方 How to use 13年9月22日日曜日
  39. 39. 使い方 • coverallsにログイン(githubアカウントでログイ ンできる) login coveralls How to use 13年9月22日日曜日
  40. 40. 使い方 • coverallsにログイン(githubアカウントでログイ ンできる) login coveralls • 自分のリポジトリを登録する How to use 13年9月22日日曜日
  41. 41. 使い方 • coverallsにログイン(githubアカウントでログイ ンできる) login coveralls • 自分のリポジトリを登録する • The registration in its own repositories How to use 13年9月22日日曜日
  42. 42. 使い方 • coverallsにログイン(githubアカウントでログイ ンできる) login coveralls • 自分のリポジトリを登録する • The registration in its own repositories How to use 13年9月22日日曜日
  43. 43. 使い方 language:  perl perl:    -­‐  5.18.1    -­‐  5.16.3 before_install:    cpanm  -­‐n  Devel::Cover::Report::Coveralls script:    perl  Build.PL  &&  ./Build  build  &&  cover  -­‐test  -­‐report  coveralls How to use 13年9月22日日曜日
  44. 44. 使い方 •TravisCI用の設定(.travis.yml)を修正 language:  perl perl:    -­‐  5.18.1    -­‐  5.16.3 before_install:    cpanm  -­‐n  Devel::Cover::Report::Coveralls script:    perl  Build.PL  &&  ./Build  build  &&  cover  -­‐test  -­‐report  coveralls How to use 13年9月22日日曜日
  45. 45. 使い方 •TravisCI用の設定(.travis.yml)を修正 •fix .travis.yml language:  perl perl:    -­‐  5.18.1    -­‐  5.16.3 before_install:    cpanm  -­‐n  Devel::Cover::Report::Coveralls script:    perl  Build.PL  &&  ./Build  build  &&  cover  -­‐test  -­‐report  coveralls How to use 13年9月22日日曜日
  46. 46. 使い方 How to use 13年9月22日日曜日
  47. 47. 使い方 •githubへコードをpush push the code to github How to use 13年9月22日日曜日
  48. 48. 使い方 •githubへコードをpush push the code to github How to use 13年9月22日日曜日
  49. 49. 使い方 •githubへコードをpush push the code to github How to use 13年9月22日日曜日
  50. 50. 13年9月22日日曜日
  51. 51. 13年9月22日日曜日
  52. 52. 仕組み Throw the API of coveralls by obtaining a token from the environment variable of TravisCI. It is necessary to put the configuration file token in CI other Mechanism 13年9月22日日曜日
  53. 53. 仕組み •TravisCIの環境変数からtokenを取得 Throw the API of coveralls by obtaining a token from the environment variable of TravisCI. It is necessary to put the configuration file token in CI other Mechanism 13年9月22日日曜日
  54. 54. 仕組み •TravisCIの環境変数からtokenを取得 •APIで投げる Throw the API of coveralls by obtaining a token from the environment variable of TravisCI. It is necessary to put the configuration file token in CI other Mechanism 13年9月22日日曜日
  55. 55. 仕組み •TravisCIの環境変数からtokenを取得 •APIで投げる •他のCIでは設定ファイルにtokenを記述 する必要 Throw the API of coveralls by obtaining a token from the environment variable of TravisCI. It is necessary to put the configuration file token in CI other Mechanism 13年9月22日日曜日
  56. 56. まとめ Summary Let's take a test coverage for better code. Regards the coveralls-perl 13年9月22日日曜日
  57. 57. まとめ •より良いコードのためにテストカバレ ッジをとろう Summary Let's take a test coverage for better code. Regards the coveralls-perl 13年9月22日日曜日
  58. 58. まとめ •より良いコードのためにテストカバレ ッジをとろう •coverallsは良いサービスです Summary Let's take a test coverage for better code. Regards the coveralls-perl 13年9月22日日曜日
  59. 59. まとめ •より良いコードのためにテストカバレ ッジをとろう •coverallsは良いサービスです •Devel::Cover::Report::Coveralls Summary Let's take a test coverage for better code. Regards the coveralls-perl 13年9月22日日曜日
  60. 60. おまけ !? One more things 13年9月22日日曜日
  61. 61. 御清聴ありがとうございました Thank you for your attention 13年9月22日日曜日

×