teststrategien.tex 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc} % this is needed for umlauts
  3. \usepackage[ngerman]{babel} % this is needed for umlauts
  4. \usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
  5. \usepackage[pdftex,active,tightpage]{preview}
  6. \setlength\PreviewBorder{2mm}
  7. \usepackage{tikz}
  8. \usetikzlibrary{shapes, calc, decorations, automata}
  9. \usepackage{amsmath,amssymb}
  10. \tikzstyle{textnode}=[
  11. draw=blue!70, % draw the border with 70% transparent blue
  12. rectangle, % the shape of the node is a rectangle
  13. fill=blue!10, % fill the box with 20% blue
  14. text width=4cm,
  15. inner xsep=3pt,
  16. text centered]
  17. \tikzstyle{smallnode}=[
  18. draw=blue!70, % draw the border with 70% transparent blue
  19. rectangle, % the shape of the node is a rectangle
  20. fill=blue!10, % fill the box with 20% blue
  21. text width=1cm,
  22. text centered]
  23. \begin{document}
  24. \begin{preview}
  25. \begin{tikzpicture}[->,>=stealth,auto, very thick]
  26. % Draw the vertices.
  27. \node[textnode] (a) {Pfadüberdeckung};
  28. \node[textnode, below of=a, node distance=4cm] (b) {Zweigüberdeckung};
  29. \node[textnode, below of=b] (c) {Anweisungsüberdeckung};
  30. \node[textnode, right of=a, node distance=5cm] (d) {Mehrfache\\Bedingungsüberdeckung};
  31. \node[textnode, below of=d, node distance=2cm] (e) {Minimal-mehrfache Bedingungsüberdeckung};
  32. \node[textnode, below of=e, node distance=2.2cm] (f) {Einfache\\Bedingungsüberdeckung};
  33. % Legende
  34. \node[smallnode, below of=c, node distance=1.5cm] (x) {x};
  35. \node[smallnode, below of=x] (y) {y};
  36. \draw (x.south) -- (y.north)
  37. node [midway,
  38. right of=x,
  39. node distance=3cm,
  40. draw=none,
  41. text width=4cm]
  42. {Testverfahren x\\subsummiert\\Testverfahren y};
  43. % Connect vertices with edges and draw weights
  44. \path (a) edge node {} (b);
  45. \path (b) edge node {} (c);
  46. \path (d) edge node {} (e);
  47. \path (e) edge node {} (f);
  48. \path (e) edge node {} (b.east);
  49. \path (x) edge node {} (y);
  50. \end{tikzpicture}
  51. \end{preview}
  52. \end{document}