Skip to content

Commit

Permalink
Add test for new ignoreConflicts parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdziadkiewicz committed Dec 19, 2022
1 parent 449e99d commit 7531ac8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/test/Fake.Core.UnitTests/Fake.DotNet.Paket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,20 @@ let tests =

let cmd = args |> Arguments.toStartInfo
Expect.stringContains (file.ToLower()) "paket" "Expected paket"
Expect.equal cmd "push testfile" "expected push command line" ]
Expect.equal cmd "push testfile" "expected push command line"
testCase "Test push --ignoreConflicts is not missing"
<| fun _ ->
let cp =
Paket.createProcess (
Paket.StartType.PushFile({ Paket.PaketPushDefaults() with IgnoreConflicts = true }, "testfile")
)

let file, args =
match cp.Command with
| RawCommand (file, args) -> file, args
| _ -> failwithf "expected RawCommand"
|> ArgumentHelper.checkIfMono

let cmd = args |> Arguments.toStartInfo
Expect.stringContains (file.ToLower()) "paket" "Expected paket"
Expect.equal cmd "push --ignoreConflicts testfile" "expected push command line" ]

0 comments on commit 7531ac8

Please sign in to comment.