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

ADD: running NUnit report parser in travis #55

parent f46d4ee8
Branches
No related merge requests found
......@@ -10,10 +10,18 @@ install:
script:
- msbuild /p:TargetFrameworkVersion="v4.0"
- nunit-console -labels TestSimpleLexer/bin/Debug/TestSimpleLexer.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestLexer/bin/Debug/TestLexer.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestGeneratedLexer/bin/Debug/TestGeneratedLexer.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestDescentParser/bin/Debug/TestDescentParser.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestGeneratedParser/bin/Debug/TestGeneratedParser.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestASTParser/bin/Debug/TestASTParser.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestVisitors/bin/Debug/TestVisitors.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
- nunit-console -labels TestCodeGenerator/bin/Debug/TestCodeGenerator.dll
- mono NunitReportParser/bin/Debug/NunitReportParser.exe
......@@ -6,8 +6,8 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{88E96425-F1E4-4092-8524-9C13225D2214}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>BAgl</RootNamespace>
<AssemblyName>BAgl</AssemblyName>
<RootNamespace>NunitReportParser</RootNamespace>
<AssemblyName>NunitReportParser</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
......
......@@ -63,7 +63,9 @@ namespace NunitReport
{
if (g.Value > 0)
{
System.Console.Out.WriteLine(g.Key + " = " + g.Value.ToString());
double grade = g.Value;
grade *= 0.6;
System.Console.Out.WriteLine(g.Key + " = " + grade.ToString());
}
}
......
......@@ -144,7 +144,7 @@ namespace TestVisitors
}
[Test]
public void ThreeLoopsTest()
public void ThreeLoopsTest1()
{
Parser p = Parse(@"begin cycle 2 cycle 3 cycle 4 write(5) end");
Assert.IsTrue(p.Parse());
......
......@@ -52,6 +52,69 @@
"TestIdChainParse": 1,
"TestIdChainFail": 1
}
},
{ "name": "TestGeneratedLexer",
"grades": {
"TestIdCount": 1,
"TestIdInfo": 1,
"TestNumbers": 1,
"TestSingleLineCmt": 1,
"TestMultiLineCmt": 1,
"TestMultiLineCmtIds": 1
}
},
{ "name": "TestGeneratedParser",
"grades": {
"TestWhile": 1,
"TestRepeat": 1,
"TestFor": 1,
"TestWrite": 1,
"TestIf": 1,
"TestVar": 1,
"TestExr": 1
}
},
{ "name": "TestDescentParser",
"grades": {
"TestWhile": 1,
"TestFor": 1,
"TestIf": 1,
"TestExpr": 1
}
},
{ "name": "TestASTParser",
"grades": {
"TestWhile": 1,
"TestRepeat": 1,
"TestFor": 1,
"TestWrite": 1
}
},
{ "name": "TestCodeGenerator",
"grades": {
"SmokeTest": 1,
"TestOutput": 1,
"TestIntDivMod": 1,
"TestIf": 1,
"TestWhile": 1,
"TestUntil": 1
}
},
{ "name": "TestVisitors",
"grades": {
"NoLoopTest": 1,
"ThreeLoopsTest": 1,
"OneVarTest": 1,
"ManyVarTest": 1,
"AssignTest": 1,
"CycleTest": 1,
"WriteTest": 1,
"OneLoopTest": 1,
"ThreeLoopsTest1": 1,
"LoopTreeTest": 1,
"SimpleTest": 1,
"FirstTest": 1
}
}
]
}
\ No newline at end of file
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