question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi, great and simple testing library. Currently I have make-it-done-solution like above. But may be is there any FAKEHelper which I have overlooked?

Target "RunExpectoTests" (fun _ ->
    let processTimeout = System.TimeSpan.MaxValue // Don't set a process timeout.  The timeout is per test.
    let testsAssemblies = "build/*Tests.exe"
    let args = [ "--debug"
                 //"--sequenced"
                 "--parallel"
               ] |> String.concat " "
    let res = 
        !! testsAssemblies
        |> Seq.map (fun testAssembly -> 
            testAssembly, ExecProcess(fun info ->
                info.FileName <- testAssembly
                info.WorkingDirectory <- buildDir
                info.Arguments <- args
            ) processTimeout)
        |> Seq.filter( snd >> (<>) 0)
        |> Seq.toList
    match res with
    | [] -> ()
    | failed -> 
        failed
        |> List.map (fun (asm,exitCode) -> sprintf "\t- Expecto test %s failed. Process finished with exit code %d." asm exitCode)
        |> String.concat System.Environment.NewLine 
        |> FailedTestsException |> raise
)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vilinskicommented, Dec 13, 2016
0reactions
forkicommented, Jan 5, 2017

fake helper is released. this can be closed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fakehelper - Tumblr
Let's upload our gifs on the beta editor to prepare for a gif pack page. Resources are available at the bottom, so lets...
Read more >
hi! i'm so sorry to bother but is there a way of... - Fakehelper
fakehelper answered: Hey, be nicer to yourself! My codes are held together with hopes. dreams, and duct tape, so they can be a...
Read more >
Elly
ko-fi.com/fakehelper. Support Elly. Tip. sounds #fake. Show More. fakehelper.tumblr.com. Tip Share. Design Art Commissions. Buy a Coffee for Elly. One time.
Read more >
fakehelper
Discover Packages · go.amplifyedge.org/sys-share-v2 · sys-core · service · fakehelper.
Read more >
— fakehelper: On my gif pack server, you can access...
fakehelper : “On my gif pack server, you can access #184 gifs of the actor Jordan Gonzalez as Ash Romero in Pretty Little...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found