Upgrade to Pro — share decks privately, control downloads, hide ads and more …

コードカバレッジを知ろう

imtnd
December 16, 2018

 コードカバレッジを知ろう

コードカバレッジを知ろう

WACATE 2018 Winter
https://wacate.jp/workshops/2018winter/program/#session6

imtnd

December 16, 2018
Tweet

More Decks by imtnd

Other Decks in Programming

Transcript

  1.   •  .@imtnd) • %+)!" ( ($) /

    • #,-*(  • WACATE   • Naite$&'+
  2. A746526 “/E=F8E6526(A746526?1@FC52 6&%<D.B>526)% 526 #3:6*+)?1@FC<D.B>,;1+-6 -B2#"$ ( $( ' 526!'”

    ISTQB526  Foundation Level 0B92   Version 2011.J02 http://jstqb.jp/dl/JSTQB-SyllabusFoundation_Version2011.J02.pdf
  3. +)," -2*'/*')+), ()+0"% !#+),%  $ 6   7

    .3&,/*')+), ()+0"#+),% $ 6)+5,14,+), +), 7
  4.          

          
  5. $  !%#"&#  !%# (    

       0 ≦   ≦ 255 '  =-1,0,255,256,a etc "&#
  6. O^VMW\SPJ";H8?BEHZ[SU • TQU;H!J BJH8?>3Y]PLKU?: =C(:<-J%;H8?6>7H • TQU9I=4A4. J%,;H8?6')5F%,; H8?6>7H •

    Y]PLNUC C-?:=@C&C+2J:=4HC56  H • 6:3TQU:<RXUCTQUC 6 >7H • /0BTQU;HEGD3A41$>#ATQU6 *
  7.    •  •    •

      •  • (MC/DC)
  8. !!  •    ( TRUE OR FALSE)

    "!" condition coverage =    "  × " × 100
  9.    •   condition1 condition2  1

    True False False 2 False True False False True
  10. -91*.59+270/ and(&&) # 38,64"& $False   ' )! %'()

    ← condition2True$ "$ (! %' condition1 condition2  1 True False False 2 False : False
  11. condition1 condition2  1 True False False 2 False (

    False '#' % !&$"      condition1 condition2  1 True False False 2 False ( False 3 True True True
  12.     No Yes age isStudent  1

    19 False 1200 2 20 True 1200 (3 19 True 1000) 
  13.     No Yes age isStudent  1

    19 True 1000 2 20 False 1200 
  14. 9BF?;(MC/DC) H I • =GC@6:D@69E*>CA785(.021  • !and"/!or", #4 

    • 9BF?;-, ,@<A4&% )100%)*1 • X$+*1)$31',@<A • X$+*1)$31',@<A • (J)K4&%@<A$ %1
  15.  !" (MC/DC) # $ A B C 1 T

    T T T 2 T T F F 3 T F T T 4 T F F F 5 F T T T 6 F T F F 7 F F T F 8 F F F F & (A or B) and C ABC A(T) T-- A(F) F-- B(T) -T- B(F) -F- C(T) --T C(F) --F ↑ %   
  16.  (MC/DC)   A B C 1 T T

    T T 2 T T F F 3 T F T T 4 T F F F 5 F T T T 6 F T F F 7 F F T F 8 F F F F  (A or B) and C ABC A(T) T-- A(F) F-- B(T) -T- B(F) -F- C(T) --T C(F) --F ABC(  A(T) TFT(T) A(F) FFT(F) B(T) FTT(T) B(F) FFT(F) C(T) TFT(T) C(F) TFF(F) A(T)C(T) A(F)B(F) ↑
  17.   (MC/DC) !" A B C 1 T T

    T T 2 T T F F 3 T F T T 4 T F F F 5 F T T T 6 F T F F 7 F F T F 8 F F F F # (A or B) and C A B C 3 T F T T 4 T F F F 5 F T T T 7 F F T F  2^3    (N+1)
  18. #,  ' 100%)&? • &%' *"(3>90 /() $/ •<:687580

    /(&3>9,/ •;=4128'-!"%.0$ /(0 +"$ •  ')7,80%.?
  19. 

  20. &!' • :6142/4%#(! • :6142/4$2/4,?5%,?5+7=1.)(!  "$ 2/4 ($) (!

    ( • ,?5+7=1. • /2?49>4+7=1. • ,>3*-;>+7=1. • 3*-.;>+7=1. • 8<>0+7=1. •  +7=1.(MC/DC)
  21.  • ,2.&'%-+.   VERSION 2.3.J02 HTTP://JSTQB.JP/DL/JSTQB-GLOSSARY.V2.3.J02.PDF • ISTQB-+.

    FOUNDATION LEVEL *41+  VERSION 2011.J02 HTTP://JSTQB.JP/DL/JSTQB-SYLLABUSFOUNDATION_VERSION2011.J02.PDF • ISTQB-+. ADVANCED LEVEL *41+  -)0(6-+.%/5+. VERSION2012.J02 HTTP://JSTQB.JP/DL/JSTQB-SYLLABUS.ADVANCED_TTA_VERSION2012.J02.PDF • MC/DC#$ ++3 HTTPS://WWW.ZIPC.COM/CAL/WHITEPAPER/DL/03.PDF • ADVANCED SOFTWARE TESTING - VOL. 3, 2ND EDITION: GUIDE TO THE ISTQB ADVANCED CERTIFICATION AS AN ADVANCED TECHNICAL TEST ANALYST • !" -+. • ,2.&'%-+.