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:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -34,6 +34,9 @@ namespace Spring
|
||||
[TestFixture]
|
||||
public sealed class VelocityCompilerOptionTests : CompilerOptionsTests
|
||||
{
|
||||
/// <summary>
|
||||
/// Setup for entiry test fixture.
|
||||
/// </summary>
|
||||
[TestFixtureSetUp]
|
||||
public void FixtureSetUp()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user