I want to write a specification. It has a section listing all features. Another section lists tests. Each test must reference the feature it tests.
Now by TeX-magic, I want untested features be colored red. I also want features to get a list of tests, which test it. Ideally clickable references to jump back and forth in pdfs and numbered.
More concretely, a hypothetical specification:
\begin{document}
\feature{Features have a List of Tests}{at-feature-list}
The first part is the title, the second a label, like for \\label
\feature{Untested Features are red}{123}
\feature{Tests link to Features they test}{crossref}
\ftest{A list of Features}{at-feature-list,123}
Create an example listing...
\end{document}
It should output like
F1. Features have a List of Tests
Tested by: T1
The first part is the title, the second a label, like for \label
F2. Untested Features are red
Tested by: T1
F3. Tests link to Features they test (colored red!)
Tested by: -
T1. A list of Features
Testing: F1, F2
As far as I know, there is no package for this. Implementing \feature and \ftest probably implementing something similar to \label and \ref.