Skip to content
Snippets Groups Projects
Commit a746c4c6 authored by Anton Bagliy's avatar Anton Bagliy
Browse files

FIX: nunit report analyzer and float grades #55

parent 64e8b681
Branches
Tags
No related merge requests found
...@@ -35,7 +35,7 @@ namespace NunitReport ...@@ -35,7 +35,7 @@ namespace NunitReport
JArray tasks = (JArray) grades["Tasks"]; JArray tasks = (JArray) grades["Tasks"];
var countedGrades = new Dictionary<string, int>(); var countedGrades = new Dictionary<string, double>();
foreach (XmlNode testcase in cases) foreach (XmlNode testcase in cases)
{ {
string caseClass = testcase.Attributes["classname"].Value.Split('.')[0]; string caseClass = testcase.Attributes["classname"].Value.Split('.')[0];
...@@ -45,7 +45,7 @@ namespace NunitReport ...@@ -45,7 +45,7 @@ namespace NunitReport
{ {
if ((string) task["name"] == caseClass) if ((string) task["name"] == caseClass)
{ {
int maxGrade = (int) task["grades"][caseName]; double maxGrade = (double) task["grades"][caseName];
if (testcase.Attributes["result"].Value == "Passed") if (testcase.Attributes["result"].Value == "Passed")
{ {
if (!countedGrades.ContainsKey(caseClass)) if (!countedGrades.ContainsKey(caseClass))
...@@ -59,7 +59,7 @@ namespace NunitReport ...@@ -59,7 +59,7 @@ namespace NunitReport
//System.Console.Out.WriteLine(countedGrades[caseClass]); //System.Console.Out.WriteLine(countedGrades[caseClass]);
} }
foreach (KeyValuePair<string, int> g in countedGrades) foreach (KeyValuePair<string, double> g in countedGrades)
{ {
if (g.Value > 0) if (g.Value > 0)
{ {
......
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