Fixed Velocity integrations output directory in release build, set treat warnings as errors, added simple documentation for missing members

Set MSBuild's output to minimal when doing solution builds to make CI server's build log more tolerable
This commit is contained in:
lahma
2009-11-29 21:39:23 +00:00
parent f1d6a652c0
commit 5bf07f9b83
12 changed files with 90 additions and 3 deletions

View File

@@ -21,14 +21,18 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DocumentationFile>
</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\..\..\build\VS.NET.2008\Spring.Template.Velocity.Tests\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.4.1.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">

View File

@@ -130,6 +130,9 @@ namespace Spring.Template.Velocity.Tests.Template.Velocity.Config {
Assert.AreEqual("TestDescription", getSingleProperty(velocityEngine, descProp), "incorrect description");
}
/// <summary>
/// Test using local config.
/// </summary>
[Test]
public void TestLocalConfig() {
VelocityEngine velocityEngine = appContext.GetObject("cnVelocityEngineLocalConfig") as VelocityEngine;

View File

@@ -164,6 +164,9 @@ namespace Spring.Template.Velocity.Tests.Template.Velocity {
}
}
/// <summary>
/// Test engine's logging capabilities.
/// </summary>
[Test]
public void TestLogging(){
VelocityEngine velocityEngine = new VelocityEngineFactoryObject().CreateVelocityEngine();

View File

@@ -30,12 +30,29 @@ using Spring.Objects.Factory.Xml;
#endregion
namespace Spring.Template.Velocity.Tests.Template.Velocity {
/// <summary>
/// Base class for Velocity engine tests.
/// </summary>
public class VelocityEngineTestBase {
/// <summary>
/// Shared application context instance.
/// </summary>
protected XmlApplicationContext appContext;
/// <summary>
/// Model used in templating.
/// </summary>
protected readonly Hashtable model = new Hashtable();
/// <summary>
/// Simple test value.
/// </summary>
protected const string TEST_VALUE = "TEST_VALUE";
#region setup
/// <summary>
/// Test setup.
/// </summary>
[SetUp]
public void Setup() {
appContext = new XmlApplicationContext(false,
@@ -47,6 +64,9 @@ namespace Spring.Template.Velocity.Tests.Template.Velocity {
#endregion
#region teardown
/// <summary>
/// Test cleanup.
/// </summary>
[TearDown]
public void TearDown() {
appContext.Dispose();

View File

@@ -34,6 +34,9 @@ namespace Spring
[TestFixture]
public sealed class VelocityCompilerOptionTests : CompilerOptionsTests
{
/// <summary>
/// Setup for entiry test fixture.
/// </summary>
[TestFixtureSetUp]
public void FixtureSetUp()
{