-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'i1178' of github.com:fsprojects/Paket
- Loading branch information
Showing
14 changed files
with
155 additions
and
16 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
integrationtests/Paket.IntegrationTests/FrameworkRestrictionsSpecs.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module Paket.IntegrationTests.FrameworkRestrictionsSpecs | ||
|
||
open Fake | ||
open Paket | ||
open System | ||
open NUnit.Framework | ||
open FsUnit | ||
open System | ||
open System.IO | ||
open Paket.Domain | ||
open Paket.Requirements | ||
|
||
[<Test>] | ||
let ``#140 windsor should resolve framework dependent dependencies``() = | ||
let lockFile = update "i000140-resolve-framework-restrictions" | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "TaskParallelLibrary"].Settings.FrameworkRestrictions | ||
|> shouldEqual [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V3_5))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module Paket.IntegrationTests.OutdatedSpecs | ||
|
||
open Fake | ||
open System | ||
open NUnit.Framework | ||
open FsUnit | ||
open System | ||
open System.IO | ||
open System.Diagnostics | ||
|
||
[<Test>] | ||
let ``#183 outdated without params``() = | ||
let msg = paket "outdated" "i000183-outdated-with-special-parameters" | ||
msg |> shouldContainText "Newtonsoft.Json 6.0.7 -> 6.0.8" | ||
msg |> shouldContainText "FSharp.Formatting 2.4 ->" | ||
|
||
[<Test>] | ||
let ``#183 outdated --ignore-constraint``() = | ||
let msg = paket "outdated --ignore-constraints" "i000183-outdated-with-special-parameters" | ||
msg.Contains("Newtonsoft.Json 6.0.7 -> 6.0.8") |> shouldEqual false | ||
|
||
|
||
[<Test>] | ||
let ``#183 outdated --include-prereleases``() = | ||
let msg = paket "outdated --include-prereleases" "i000183-outdated-with-special-parameters" | ||
msg |> shouldContainText "Newtonsoft.Json 6.0.7 ->" | ||
msg.Contains("Newtonsoft.Json 6.0.7 -> 6.0.8") |> shouldEqual false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
integrationtests/Paket.IntegrationTests/UpdatePackageSpecs.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module Paket.IntegrationTests.UpdatePackageSpecs | ||
|
||
open Fake | ||
open System | ||
open NUnit.Framework | ||
open FsUnit | ||
open System | ||
open System.IO | ||
open System.Diagnostics | ||
open Paket | ||
open Paket.Domain | ||
|
||
[<Test>] | ||
let ``#1178 update with Mircosoft.* filter``() = | ||
paket "update nuget Microsoft.* --filter" "i001178-update-with-regex" |> ignore | ||
let lockFile = LockFile.LoadFrom(Path.Combine(scenarioTempPath "i001178-update-with-regex","paket.lock")) | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Castle.Windsor"].Version | ||
|> shouldEqual (SemVer.Parse "2.5.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version | ||
|> shouldEqual (SemVer.Parse "2.6.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "5.0.1") | ||
|
||
[<Test>] | ||
let ``#1178 update with [MN].* --filter``() = | ||
paket "update nuget [MN].* --filter" "i001178-update-with-regex" |> ignore | ||
let lockFile = LockFile.LoadFrom(Path.Combine(scenarioTempPath "i001178-update-with-regex","paket.lock")) | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Castle.Windsor"].Version | ||
|> shouldEqual (SemVer.Parse "2.5.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "NUnit"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "2.6.1") | ||
lockFile.Groups.[Constants.MainDependencyGroup].Resolution.[PackageName "Microsoft.AspNet.WebApi.SelfHost"].Version | ||
|> shouldBeGreaterThan (SemVer.Parse "5.0.1") |
15 changes: 15 additions & 0 deletions
15
integrationtests/scenarios/i000140-resolve-framework-restrictions/before/paket.dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
source http://nuget.org/api/v2 | ||
|
||
# Core Dependencies | ||
nuget FParsec ~> 1.0.1 | ||
nuget FSharp.Core.Microsoft.Signed ~> 3.1.1 | ||
nuget MathNet.Numerics.FSharp ~> 3.2.1 | ||
|
||
# Development Dependencies | ||
nuget FsUnit ~> 1.3 | ||
|
||
# Tools | ||
nuget FAKE ~> 3.5 | ||
nuget NUnit.Runners ~> 2.6 | ||
nuget FSharp.Formatting !~> 2.4 | ||
nuget NuGet.CommandLine |
4 changes: 4 additions & 0 deletions
4
...grationtests/scenarios/i000183-outdated-with-special-parameters/before/paket.dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source http://nuget.org/api/v2 | ||
|
||
nuget FSharp.Formatting ~> 2.4 | ||
nuget Newtonsoft.Json ~> 6.0.7 |
13 changes: 13 additions & 0 deletions
13
integrationtests/scenarios/i000183-outdated-with-special-parameters/before/paket.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
NUGET | ||
remote: http://nuget.org/api/v2 | ||
specs: | ||
FSharp.Compiler.Service (1.4.2.1) | ||
FSharp.Formatting (2.4) | ||
FSharp.Compiler.Service (>= 0.0.20) | ||
Microsoft.AspNet.Razor (>= 2.0.30506.0) | ||
RazorEngine (>= 3.3.0) | ||
Microsoft.AspNet.Razor (3.2.3) | ||
Newtonsoft.Json (6.0.7) | ||
RazorEngine (3.7.3) | ||
Microsoft.AspNet.Razor (>= 3.0.0) - framework: >= net45 | ||
Microsoft.AspNet.Razor (2.0.30506.0) - framework: net40 |
5 changes: 5 additions & 0 deletions
5
integrationtests/scenarios/i001178-update-with-regex/before/paket.dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
source https://nuget.org/api/v2 | ||
|
||
nuget Castle.Windsor | ||
nuget NUnit | ||
nuget Microsoft.AspNet.WebApi.SelfHost |
21 changes: 21 additions & 0 deletions
21
integrationtests/scenarios/i001178-update-with-regex/before/paket.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NUGET | ||
remote: https://nuget.org/api/v2 | ||
specs: | ||
Castle.Core (3.3.3) | ||
Castle.Windsor (2.5.1) | ||
Castle.Core (>= 2.5.1) | ||
Microsoft.AspNet.WebApi.Client (5.2.3) | ||
Microsoft.Net.Http (>= 2.2.22) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Newtonsoft.Json (>= 6.0.4) - framework: portable-wp80+win+net45+wp81+wpa81, >= net45 | ||
Microsoft.AspNet.WebApi.Core (5.0.0) | ||
Microsoft.AspNet.WebApi.Client (>= 5.0.0) | ||
Microsoft.AspNet.WebApi.SelfHost (5.0.1) | ||
Microsoft.AspNet.WebApi.Core (>= 5.0.0 < 5.1) | ||
Microsoft.Bcl (1.1.10) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Bcl.Build (>= 1.0.14) | ||
Microsoft.Bcl.Build (1.0.21) - import_targets: false, framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Net.Http (2.2.29) - framework: portable-wp80+win+net45+wp81+wpa81 | ||
Microsoft.Bcl (>= 1.1.10) | ||
Microsoft.Bcl.Build (>= 1.0.14) | ||
Newtonsoft.Json (7.0.1) - framework: portable-wp80+win+net45+wp81+wpa81, >= net45 | ||
NUnit (2.6.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters