diff --git a/source/OctoPack.Tests/Integration/SampleSolutionBuildFixture.cs b/source/OctoPack.Tests/Integration/SampleSolutionBuildFixture.cs index c7ffaf0..269786a 100644 --- a/source/OctoPack.Tests/Integration/SampleSolutionBuildFixture.cs +++ b/source/OctoPack.Tests/Integration/SampleSolutionBuildFixture.cs @@ -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");