Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<DefineConstants>
PAKET_NETCORE;
NO_UNIT_PLATFORMATTRIBUTE;
NO_UNIT_TIMEOUTATTRIBUTE;
TESTSUITE_KNOWN_FAILURE_DOTNETCORE_3005;
FAKE_NETSTANDARD_API;
@(DefineConstants)
Expand Down
7 changes: 7 additions & 0 deletions integrationtests/Paket.IntegrationTests/TestHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ open System
open System.IO
open Paket.Logging

#if NO_UNIT_TIMEOUTATTRIBUTE
#else
// global timeout for single tests, in ms
[<assembly: NUnit.Framework.Timeout(20_000)>]
do ()
#endif

let scenarios = System.Collections.Generic.List<_>()
let isLiveUnitTesting = AppDomain.CurrentDomain.GetAssemblies() |> Seq.exists (fun a -> a.GetName().Name = "Microsoft.CodeAnalysis.LiveUnitTesting.Runtime")

Expand Down
7 changes: 7 additions & 0 deletions tests/Paket.Tests/TestHelpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ open System.Xml
open System.IO
open Paket.Domain

#if NO_UNIT_TIMEOUTATTRIBUTE
#else
// global timeout for single tests, in ms
[<assembly: NUnit.Framework.Timeout(2_000)>]
do ()
#endif

let makeOrList (l:_ list) =
if l.IsEmpty then FrameworkRestriction.NoRestriction
else Seq.fold FrameworkRestriction.combineRestrictionsWithOr FrameworkRestriction.EmptySet l
Expand Down