|
From: <te...@us...> - 2009-05-25 21:24:03
|
Revision: 4386
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4386&view=rev
Author: tehlike
Date: 2009-05-25 21:23:55 +0000 (Mon, 25 May 2009)
Log Message:
-----------
Adding missing pdb line.
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2009-05-25 21:18:45 UTC (rev 4385)
+++ trunk/nhibernate/teamcity.build 2009-05-25 21:23:55 UTC (rev 4386)
@@ -14,6 +14,7 @@
</target>
<target name="copy-teamcity-configuration">
<copy file="${teamcity.dotnet.nunitaddin}-2.5.0.dll" todir="${root.dir}/Tools/nunit/addins" />
+ <copy file="${teamcity.dotnet.nunitaddin}-2.5.0.pdb" todir="${root.dir}/Tools/nunit/addins" />
<copy file="build-common/teamcity-hibernate.cfg.xml" tofile="${bin.dir}/hibernate.cfg.xml" />
</target>
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <te...@us...> - 2009-07-15 22:44:07
|
Revision: 4641
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4641&view=rev
Author: tehlike
Date: 2009-07-15 22:43:58 +0000 (Wed, 15 Jul 2009)
Log Message:
-----------
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2009-07-15 22:28:37 UTC (rev 4640)
+++ trunk/nhibernate/teamcity.build 2009-07-15 22:43:58 UTC (rev 4641)
@@ -2,13 +2,13 @@
<project name="NHibernate TeamCity Build" xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" default="clean-configure-test">
<property name="root.dir" value="." />
<include buildfile="${root.dir}/default.build" />
-
<if test="${not property::exists('CCNetLabel') and not property::exists('build.number')}">
<fail>This build file is for use with CruiseControl.NET or TeamCity</fail>
</if>
+
<property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" />
- <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package">
+ <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration build test">
</target>
<target name="copy-teamcity-configuration">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <te...@us...> - 2009-07-17 15:02:06
|
Revision: 4649
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4649&view=rev
Author: tehlike
Date: 2009-07-17 15:02:04 +0000 (Fri, 17 Jul 2009)
Log Message:
-----------
Removing reference and sourcez zips from the teamcity build
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2009-07-17 14:42:29 UTC (rev 4648)
+++ trunk/nhibernate/teamcity.build 2009-07-17 15:02:04 UTC (rev 4649)
@@ -8,7 +8,7 @@
<property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" />
- <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package">
+ <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration binaries test binaries-zip">
</target>
<target name="copy-teamcity-configuration">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2011-02-20 17:45:44
|
Revision: 5388
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5388&view=rev
Author: ricbrown
Date: 2011-02-20 17:45:37 +0000 (Sun, 20 Feb 2011)
Log Message:
-----------
Attempt to get more detailed error from TeamCity failure (for Firebird)
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2011-02-20 15:38:28 UTC (rev 5387)
+++ trunk/nhibernate/teamcity.build 2011-02-20 17:45:37 UTC (rev 5388)
@@ -85,19 +85,27 @@
[Function("StripTimings")]
public static string StripTimings(string testResultFile, string outputFile)
{
- XmlDocument testResults = new XmlDocument();
- testResults.Load(testResultFile);
+ try
+ {
+ XmlDocument testResults = new XmlDocument();
+ testResults.Load(testResultFile);
- StripAttributes(testResults, "//@total");
- StripAttributes(testResults, "//@date");
- StripAttributes(testResults, "//@time");
- StripAttributes(testResults, "//@machine-name");
- StripAttributes(testResults, "//@user");
- StripAttributes(testResults, "//@user-domain");
+ StripAttributes(testResults, "//@total");
+ StripAttributes(testResults, "//@date");
+ StripAttributes(testResults, "//@time");
+ StripAttributes(testResults, "//@machine-name");
+ StripAttributes(testResults, "//@user");
+ StripAttributes(testResults, "//@user-domain");
- outputFile = Path.GetDirectoryName(testResultFile) + "/" + outputFile;
- testResults.Save(outputFile);
- return outputFile;
+ outputFile = Path.GetDirectoryName(testResultFile) + "/" + outputFile;
+ testResults.Save(outputFile);
+ return outputFile;
+ }
+ catch(Exception e)
+ {
+ Console.WriteLine(e);
+ throw;
+ }
}
public class Result
@@ -137,97 +145,105 @@
[Function("CompareResults")]
public static string CompareResults(string currentResult, string lastResult)
{
- string outputFile = Path.GetDirectoryName(currentResult) + "/Comparison.txt";
- StringBuilder report = new StringBuilder();
+ try
+ {
+ string outputFile = Path.GetDirectoryName(currentResult) + "/Comparison.txt";
+ StringBuilder report = new StringBuilder();
- report.AppendLine("Comparison Results");
- report.AppendLine("==================");
+ report.AppendLine("Comparison Results");
+ report.AppendLine("==================");
- IList<Result> before = Result.ParseFile(lastResult);
- IList<Result> after = Result.ParseFile(currentResult);
+ IList<Result> before = Result.ParseFile(lastResult);
+ IList<Result> after = Result.ParseFile(currentResult);
- IList<string> beforeTestNames = new List<string>();
- IList<string> afterTestNames = new List<string>();
+ IList<string> beforeTestNames = new List<string>();
+ IList<string> afterTestNames = new List<string>();
- foreach(Result result in before) beforeTestNames.Add(result.Name);
- foreach(Result result in after) afterTestNames.Add(result.Name);
+ foreach(Result result in before) beforeTestNames.Add(result.Name);
+ foreach(Result result in after) afterTestNames.Add(result.Name);
- IList<Result> afterExistingTests = new List<Result>();
- foreach(Result result in after)
- if (beforeTestNames.Contains(result.Name))
- afterExistingTests.Add(result);
+ IList<Result> afterExistingTests = new List<Result>();
+ foreach(Result result in after)
+ if (beforeTestNames.Contains(result.Name))
+ afterExistingTests.Add(result);
- IList<Result> newTests = new List<Result>();
- foreach(Result result in after)
- if (!beforeTestNames.Contains(result.Name))
- newTests.Add(result);
+ IList<Result> newTests = new List<Result>();
+ foreach(Result result in after)
+ if (!beforeTestNames.Contains(result.Name))
+ newTests.Add(result);
- report.AppendLine();
- report.AppendLine("*** Tests new since last recorded results ***");
- if (newTests.Count > 0)
- {
- foreach(Result result in newTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
- }
- else
- report.AppendLine("None");
+ report.AppendLine();
+ report.AppendLine("*** Tests new since last recorded results ***");
+ if (newTests.Count > 0)
+ {
+ foreach(Result result in newTests)
+ report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ }
+ else
+ report.AppendLine("None");
- IList<Result> fixedTests = new List<Result>();
- foreach(Result afterResult in afterExistingTests)
- foreach(Result beforeResult in before)
- if (beforeResult.Name == afterResult.Name)
- if (!beforeResult.Success && afterResult.Success)
- fixedTests.Add(afterResult);
+ IList<Result> fixedTests = new List<Result>();
+ foreach(Result afterResult in afterExistingTests)
+ foreach(Result beforeResult in before)
+ if (beforeResult.Name == afterResult.Name)
+ if (!beforeResult.Success && afterResult.Success)
+ fixedTests.Add(afterResult);
- report.AppendLine();
- report.AppendLine("*** Tests fixed since last recorded results ***");
- if (fixedTests.Count > 0)
- {
- foreach(Result result in fixedTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
- }
- else
- report.AppendLine("None");
+ report.AppendLine();
+ report.AppendLine("*** Tests fixed since last recorded results ***");
+ if (fixedTests.Count > 0)
+ {
+ foreach(Result result in fixedTests)
+ report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ }
+ else
+ report.AppendLine("None");
- IList<Result> missingTests = new List<Result>();
- foreach(Result result in before)
- if (!afterTestNames.Contains(result.Name))
- missingTests.Add(result);
+ IList<Result> missingTests = new List<Result>();
+ foreach(Result result in before)
+ if (!afterTestNames.Contains(result.Name))
+ missingTests.Add(result);
- report.AppendLine();
- report.AppendLine("*** Tests missing since last recorded results ***");
- if (missingTests.Count > 0)
- {
- foreach(Result result in missingTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
- }
- else
- report.AppendLine("None");
+ report.AppendLine();
+ report.AppendLine("*** Tests missing since last recorded results ***");
+ if (missingTests.Count > 0)
+ {
+ foreach(Result result in missingTests)
+ report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ }
+ else
+ report.AppendLine("None");
- IList<Result> brokenTests = new List<Result>();
- foreach(Result afterResult in afterExistingTests)
- foreach(Result beforeResult in before)
- if (beforeResult.Name == afterResult.Name)
- if (beforeResult.Success && !afterResult.Success)
- brokenTests.Add(afterResult);
+ IList<Result> brokenTests = new List<Result>();
+ foreach(Result afterResult in afterExistingTests)
+ foreach(Result beforeResult in before)
+ if (beforeResult.Name == afterResult.Name)
+ if (beforeResult.Success && !afterResult.Success)
+ brokenTests.Add(afterResult);
- report.AppendLine();
- report.AppendLine("*** Tests broken since last recorded results ***");
- if (brokenTests.Count > 0)
- {
- foreach(Result result in brokenTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
- }
- else
- report.AppendLine("None");
+ report.AppendLine();
+ report.AppendLine("*** Tests broken since last recorded results ***");
+ if (brokenTests.Count > 0)
+ {
+ foreach(Result result in brokenTests)
+ report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ }
+ else
+ report.AppendLine("None");
- string output = report.ToString();
- File.WriteAllText(outputFile, output);
+ string output = report.ToString();
+ File.WriteAllText(outputFile, output);
- if (brokenTests.Count > 0)
- throw new Exception("Previously passing tests have been broken\n\n" + output);
+ if (brokenTests.Count > 0)
+ throw new Exception("Previously passing tests have been broken\n\n" + output);
- return output;
+ return output;
+ }
+ catch(Exception e)
+ {
+ Console.WriteLine(e);
+ throw;
+ }
}
]]>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2011-02-26 17:50:18
|
Revision: 5402
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5402&view=rev
Author: ricbrown
Date: 2011-02-26 17:50:12 +0000 (Sat, 26 Feb 2011)
Log Message:
-----------
Updated failed test verification (on other DBs) to prevent ignored tests failing the build.
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2011-02-26 15:41:57 UTC (rev 5401)
+++ trunk/nhibernate/teamcity.build 2011-02-26 17:50:12 UTC (rev 5402)
@@ -138,6 +138,13 @@
return result;
}
+
+ public override string ToString()
+ {
+ string prefix = "IGNORED - ";
+ if (Executed) prefix = Success ? "PASS - " : "FAIL - ";
+ return prefix + Name;
+ }
public static IList<Result> ParseFile(string file)
{
@@ -189,7 +196,7 @@
if (newTests.Count > 0)
{
foreach(Result result in newTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ report.AppendLine(result.ToString());
}
else
report.AppendLine("None");
@@ -206,7 +213,7 @@
if (fixedTests.Count > 0)
{
foreach(Result result in fixedTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ report.AppendLine(result.ToString());
}
else
report.AppendLine("None");
@@ -221,16 +228,33 @@
if (missingTests.Count > 0)
{
foreach(Result result in missingTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ report.AppendLine(result.ToString());
}
else
report.AppendLine("None");
+
+ IList<Result> ignoredTests = new List<Result>();
+ foreach(Result afterResult in afterExistingTests)
+ foreach(Result beforeResult in before)
+ if (beforeResult.Name == afterResult.Name)
+ if (beforeResult.Executed && !afterResult.Executed)
+ ignoredTests.Add(afterResult);
+ report.AppendLine();
+ report.AppendLine("*** Tests ignored since last recorded results ***");
+ if (ignoredTests.Count > 0)
+ {
+ foreach(Result result in ignoredTests)
+ report.AppendLine(result.ToString());
+ }
+ else
+ report.AppendLine("None");
+
IList<Result> brokenTests = new List<Result>();
foreach(Result afterResult in afterExistingTests)
foreach(Result beforeResult in before)
if (beforeResult.Name == afterResult.Name)
- if (beforeResult.Success && !afterResult.Success)
+ if (beforeResult.Success && afterResult.Executed && !afterResult.Success)
brokenTests.Add(afterResult);
report.AppendLine();
@@ -238,7 +262,7 @@
if (brokenTests.Count > 0)
{
foreach(Result result in brokenTests)
- report.AppendLine((result.Success ? "PASS - " : "FAIL - ") + result.Name);
+ report.AppendLine(result.ToString());
}
else
report.AppendLine("None");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <pa...@us...> - 2011-07-11 00:01:23
|
Revision: 5985
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5985&view=rev
Author: patearl
Date: 2011-07-11 00:01:17 +0000 (Mon, 11 Jul 2011)
Log Message:
-----------
Build: Make SQLite x64 and PostgreSQL builds fail if there are any failing unit tests.
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2011-07-10 23:55:42 UTC (rev 5984)
+++ trunk/nhibernate/teamcity.build 2011-07-11 00:01:17 UTC (rev 5985)
@@ -75,8 +75,6 @@
</target>
<target name="setup-teamcity-sqlite64">
- <property name="nunit-console" value="${tools.dir}/NUnit/nunit-console.exe" />
- <property name="nunit.found" value="true" />
<property name="nhibernate.connection.driver_class" value="NHibernate.Driver.SQLite20Driver" />
<property name="nhibernate.dialect" value="NHibernate.Dialect.SQLiteDialect" />
<property name="nhibernate.connection.connection_string" value="Data Source=NHibernate.db" />
@@ -85,13 +83,9 @@
<include name="*.dll"/>
</fileset>
</copy>
- <property name="NHibernate.Test.IgnoreFail" value="true" />
- <property name="teamcity.last.result" value="${root.dir}/lib/teamcity/sqlite/NHibernate.Test.last-results.xml" />
</target>
<target name="setup-teamcity-postgresql">
- <property name="nunit-console" value="${tools.dir}/NUnit/nunit-console.exe" />
- <property name="nunit.found" value="true" />
<property name="nhibernate.connection.driver_class" value="NHibernate.Driver.NpgsqlDriver" />
<property name="nhibernate.dialect" value="NHibernate.Dialect.PostgreSQL82Dialect" />
<property name="nhibernate.connection.connection_string" value="Host=localhost;Port=5432;Database=nhibernate;Username=nhibernate;Password=nhibernate" />
@@ -100,8 +94,6 @@
<include name="*.dll"/>
</fileset>
</copy>
- <property name="NHibernate.Test.IgnoreFail" value="true" />
- <property name="teamcity.last.result" value="${root.dir}/lib/teamcity/postgresql/NHibernate.Test.last-results.xml" />
</target>
<script language="C#" prefix="testResult">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ric...@us...> - 2011-07-25 12:51:22
|
Revision: 5994
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5994&view=rev
Author: ricbrown
Date: 2011-07-25 12:51:16 +0000 (Mon, 25 Jul 2011)
Log Message:
-----------
Separated new failing & new not-failing from test comparison to allow easy failure if new failing tests are added (exception is commented out just now).
Modified Paths:
--------------
trunk/nhibernate/teamcity.build
Modified: trunk/nhibernate/teamcity.build
===================================================================
--- trunk/nhibernate/teamcity.build 2011-07-24 12:54:22 UTC (rev 5993)
+++ trunk/nhibernate/teamcity.build 2011-07-25 12:51:16 UTC (rev 5994)
@@ -232,21 +232,35 @@
if (beforeTestNames.Contains(result.Name))
afterExistingTests.Add(result);
- IList<Result> newTests = new List<Result>();
+ IList<Result> newFailingTests = new List<Result>();
+ IList<Result> newNotFailingTests = new List<Result>();
foreach(Result result in after)
if (!beforeTestNames.Contains(result.Name))
- newTests.Add(result);
+ if (result.Executed && !result.Success)
+ newFailingTests.Add(result);
+ else
+ newNotFailingTests.Add(result);
report.AppendLine();
- report.AppendLine("*** Tests new since last recorded results ***");
- if (newTests.Count > 0)
+ report.AppendLine("*** Tests new (not failing) since last recorded results ***");
+ if (newNotFailingTests.Count > 0)
{
- foreach(Result result in newTests)
+ foreach(Result result in newNotFailingTests)
report.AppendLine(result.ToString());
}
else
report.AppendLine("None");
+ report.AppendLine();
+ report.AppendLine("*** Tests new (failed) since last recorded results ***");
+ if (newFailingTests.Count > 0)
+ {
+ foreach(Result result in newFailingTests)
+ report.AppendLine(result.ToString());
+ }
+ else
+ report.AppendLine("None");
+
IList<Result> fixedTests = new List<Result>();
foreach(Result afterResult in afterExistingTests)
foreach(Result beforeResult in before)
@@ -316,6 +330,9 @@
string output = report.ToString();
File.WriteAllText(outputFile, output);
+ //if (newFailingTests.Count > 0)
+ // throw new Exception("New tests that fail have been added\n\n" + output);
+
if (brokenTests.Count > 0)
throw new Exception("Previously passing tests have been broken\n\n" + output);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|