From 7faba9b73530dd4586e60f90782c503733479fda Mon Sep 17 00:00:00 2001 From: andi0b Date: Thu, 19 Dec 2024 01:42:11 +0100 Subject: [PATCH] github tests --- .github/workflows/dotnet.yml | 4 ++-- Day03_fparsec.fs | 10 +++++----- advent-of-code-2024.fsproj | 5 ----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5ca46f3..19fc189 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,12 +21,12 @@ jobs: with: dotnet-version: 9.0.x - name: Restore dependencies - run: dotnet restore -p:test=true + run: dotnet restore -p:test=true - name: Build run: dotnet build -p:test=true --no-restore --configuration Release - name: Test run: > - dotnet test -p:test=true -p:TestingPlatformShowTestsFailure=true + dotnet test -p:test=true --configuration Release --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" --no-build --verbosity normal diff --git a/Day03_fparsec.fs b/Day03_fparsec.fs index 5116cfb..0cf26db 100644 --- a/Day03_fparsec.fs +++ b/Day03_fparsec.fs @@ -63,11 +63,11 @@ module tests = let ``Part 2 example`` (input) = part2 input =! 48 - [] + [] let ``Part 1 realworld`` () = System.IO.File.ReadAllText("../../../inputs/day03.txt") |> part1 =! 156388521 - [] + [] let ``Part 2 realworld`` () = System.IO.File.ReadAllText("../../../inputs/day03.txt") |> part2 =! 75920122 @@ -79,10 +79,10 @@ module ``FParsec Tests`` = | Success(result, _, _) -> Result.Ok result | Failure(msg, _, _) -> Result.Error msg - [] + [] let ``Test mul(123,456)`` () = test mul "mul(123,456)" =! Result.Ok(123, 456) - [] + [] let ``Test mul(123,456`` () = - test mul "mul(123,456]" <>! Result.Ok(123, 456) \ No newline at end of file + test mul "mul(123,456]" <>! Result.Ok(123, 456) diff --git a/advent-of-code-2024.fsproj b/advent-of-code-2024.fsproj index 1ccbc4c..ea75152 100644 --- a/advent-of-code-2024.fsproj +++ b/advent-of-code-2024.fsproj @@ -15,11 +15,6 @@ false false - - - true - true -