Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Test for appending version value when version is not passed as a para…
Browse files Browse the repository at this point in the history
…meter
  • Loading branch information
tothegills committed Jan 15, 2016
1 parent 7ab47a2 commit 9cc4bc1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions source/OctoPack.Tests/Integration/SampleSolutionBuildFixture.cs
Expand Up @@ -295,6 +295,54 @@ public void ShouldAllowAppendingValueToPackageId()

[Test]
public void ShouldAllowAppendingValueToVersion()
{
MsBuild("Samples.sln /p:RunOctoPack=true /p:OctoPackAppendToVersion=Foo /p:Configuration=Release /v:m");

AssertPackage(@"Sample.ConsoleApp\obj\octopacked\Sample.ConsoleApp.2.1.0.0-Foo.nupkg",
pkg => pkg.AssertContents(
"Sample.ConsoleApp.exe",
"Sample.ConsoleApp.exe.config",
"Sample.ConsoleApp.pdb"));

AssertPackage(@"Sample.WebApp\obj\octopacked\Sample.WebApp.3.1.0-dev-Foo.nupkg",
pkg => pkg.AssertContents(
"bin\\*.dll",
"bin\\*.xml",
"bin\\Sample.WebApp.dll",
"bin\\Sample.WebApp.pdb",
"Content\\*.css",
"Content\\*.png",
"Content\\LinkedFile.txt",
"Scripts\\*.js",
"Views\\Web.config",
"Views\\*.cshtml",
"Global.asax",
"Web.config",
"Web.Release.config",
"Web.Debug.config"));

AssertPackage(@"Sample.WebAppWithSpec\obj\octopacked\Sample.WebAppWithSpec.1.0.13-demo-Foo.nupkg",
pkg => pkg.AssertContents(
"bin\\*.dll",
"bin\\*.xml",
"bin\\Sample.WebAppWithSpec.dll",
"bin\\Sample.WebAppWithSpec.pdb",
"Content\\*.css",
"Content\\*.png",
"Content\\LinkedFile.txt",
"Scripts\\*.js",
"Views\\Web.config",
"Views\\*.cshtml",
"Views\\Deploy.ps1",
"Deploy.ps1",
"Global.asax",
"Web.config",
"Web.Release.config",
"Web.Debug.config"));
}

[Test]
public void ShouldAllowAppendingValueToVersionWithExplicitPackageVersion()
{
MsBuild("Samples.sln /p:RunOctoPack=true /p:OctoPackPackageVersion=1.0.9 /p:OctoPackAppendToVersion=Foo /p:Configuration=Release /v:m");

Expand Down

0 comments on commit 9cc4bc1

Please sign in to comment.