in traceabilitytool/reportwriter.cs [147:171]
public static void WriteMissingCodeAndTestCoverageReport(string outputFolderPath)
{
int count = 0;
int maxKeyWidth = ReportGenerator.missingTestCoverageKeyWidth;
StringBuilder sb = new StringBuilder();
// Pick the shorter of the key lengths from missing code and test coverage lists
// (if a longer key is not found on both lists at the same time, it will not be output to the report).
if (ReportGenerator.missingCodeCoverageKeyWidth < maxKeyWidth)
maxKeyWidth = ReportGenerator.missingCodeCoverageKeyWidth;
foreach (string key in ReportGenerator.missingTestCoverage.Keys)
{
if (ReportGenerator.missingCodeCoverage.ContainsKey(key))
{
sb.AppendLine(key.PadRight(maxKeyWidth + 3) + ReportGenerator.missingTestCoverage[key]);
count++;
}
}
sb.AppendLine("".PadRight(75, '='));
sb.AppendLine("Total number of requirements missing both implementation and tests: " + count.ToString());
// Output data to a CSV file.
writeStringToFile(sb.ToString(), outputFolderPath + @"\missing_code_and_test_coverage.txt");
}