Commit cba53e69 authored by Andreas Zwinkau's avatar Andreas Zwinkau

Red warnings if not tested

parent 5b093e50
......@@ -11,7 +11,6 @@ build/%.pdf: %.tex *.sty
%.pdf: build/%.pdf
mv $< $@ # atomic!
cp $@ $<
cp $@ ~/Dropbox/ # store latest version in Dropbox
.PHONY: show clean distclean
......
\ProvidesPackage{pflichtenheft}
\RequirePackage{xcolor}
\RequirePackage{rdfref-user,rdfref-query}
% cross referencing
\newcommand\partOf[1]{\AddProperty{doc:partOf}{#1}}
\newcommand\tests[1]{\AddProperty{pfl:tests}{#1}}
\newcommand\fulfills[1]{\AddProperty{pfl:fulfills}{#1}}
\newcommand\tests[1]{%
\AddTripleEx{#1}{pfl:is-tested}{yeah}
\AddProperty{pfl:tests}{#1}}
\newcommand\fulfills[1]{%
\AddTripleEx{#1}{pfl:is-fulfilled}{yeah}
\AddProperty{pfl:fulfills}{#1}}
\newcommand\testlink[1]{\hyperlink{#1}%
{ \GetProperty{#1}{pfl:tstid} }}
\newcommand\functionalitylink[1]{\hyperlink{#1}%
......@@ -23,7 +27,9 @@
\marginpar{C\arabic{criterium}}
\AddProperty{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{C\arabic{criterium}}
Fulfilled by: \Bind{?f}{pfl:fulfills}{#2}{ \functionalitylink{\GetVal{?f}} }
\IfProperty{#2}{pfl:is-fulfilled}{%
Fulfilled by: \Bind{?f}{pfl:fulfills}{#2}{ \functionalitylink{\GetVal{?f}} }
}{{\color{red}{NOT FULFILLLED}}}
\par}
\newcommand\functionality[2]{
......@@ -32,7 +38,9 @@
\marginpar{F\arabic{functionality}}
\AddProperty{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{F\arabic{functionality}}
Tested by: \Bind{?t}{pfl:tests}{#2}{ \testlink{\GetVal{?t}} }
\IfProperty{#2}{pfl:is-tested}{%
Tested by: \Bind{?t}{pfl:tests}{#2}{ \testlink{\GetVal{?t}} }
}{{\color{red}{NOT TESTED}}}
Fulfills: \Bind{#2}{pfl:fulfills}{?c}{ \criteriumlink{\GetVal{?c}} }
\par}
......
......@@ -4,6 +4,7 @@
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage{hyperref}
\usepackage{xcolor}
\hypersetup{
pdftitle={Pflichtenheft},
bookmarks=true,
......@@ -24,7 +25,6 @@ Wir brauchen ein \LaTeX\ Paket für Pflichtenhefte in PSE.
\subsection{Muss}
\rdflabel{sec:muss}
\partOf{sec:funktionen}
\criterium{Querverweise}{crt:crossref}
......@@ -32,7 +32,6 @@ Wir brauchen ein \LaTeX\ Paket für Pflichtenhefte in PSE.
\subsection{Kann}
\rdflabel{sec:kann}
\partOf{sec:funktionen}
\section{Funktionen}
......@@ -41,6 +40,8 @@ Wir brauchen ein \LaTeX\ Paket für Pflichtenhefte in PSE.
\functionality{Bar}{fnc:bar}
\functionality{Baz}{fnc:baz}
\section{Tests}
\rdflabel{sec:tests}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment