add tests

This commit is contained in:
bparodi@lezzo.org 2024-10-26 14:12:05 +02:00
parent dfb49cbf50
commit f67d752533
3 changed files with 42 additions and 0 deletions

4
tests/Program.fs Normal file
View file

@ -0,0 +1,4 @@
module Program =
[<EntryPoint>]
let main _ = 0

8
tests/UnitTest1.fs Normal file
View file

@ -0,0 +1,8 @@
module tests
open NUnit.Framework
open Pentole.TestsExtensions
[<Test>]
let Test1 () =
Assert.Pass()

30
tests/tests.fsproj Normal file
View file

@ -0,0 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
<Compile Include="UnitTest1.fs" />
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="NUnit" Version="4.2.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="NUnit.Analyzers" Version="3.6.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="Pentole" Version="0.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\src\src.fsproj" />
</ItemGroup>
</Project>