The Simplest Way to Measure Code Coverage?

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • Never write tests just for coverage! But a coverage report can still be a useful tool nevertheless.
    Coverage script:
    github.com/pla...

КОМЕНТАРІ • 2

  • @Stefan-bp6ge
    @Stefan-bp6ge 22 дні тому

    Nice work!

  • @pl4gueis
    @pl4gueis 21 день тому

    F# mentioned nice. That code looks like an affair baby of C# and F# though :D
    Could be cleaner with more F# idiomatic code for example pattern matching like this:
    let main args =
    match args with
    | [|_; "install"|] -> install()
    | [|_; workspace|] -> workspace |> collect |> openBrowser
    | _ ->
    Console.Error.WriteLine("Specify 'install' to install required tools")
    Console.Error.WriteLine("OR a workspace to create a coverage report")
    exit 1
    main fsi.CommandLineArgs