-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from nfdi4plants/setupTests
Setup tests
- Loading branch information
Showing
11 changed files
with
105 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.100", | ||
"rollForward": "latestMinor" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module AssayTests | ||
|
||
open Expecto | ||
open TestingUtils | ||
open arcIO.NET | ||
open System.Text.Json | ||
|
||
[<Tests>] | ||
let testComponentCasting = | ||
|
||
testList "Test" [ | ||
testCase "WillFail" (fun () -> | ||
Expect.isTrue true "Test if the test will test." | ||
|
||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module arcIO.NET.Tests | ||
|
||
open Expecto | ||
|
||
[<EntryPoint>] | ||
let main argv = | ||
|
||
//Regex Test | ||
Tests.runTestsWithCLIArgs [Tests.CLIArguments.Sequenced] argv AssayTests.testComponentCasting |> ignore | ||
|
||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module TestingUtils | ||
|
||
open Expecto | ||
|
||
/// | ||
let floatsClose accuracy (seq1:seq<float>) (seq2:seq<float>) = | ||
Seq.map2 (fun x1 x2 -> Accuracy.areClose accuracy x1 x2) seq1 seq2 | ||
|> Seq.contains false | ||
|> not | ||
|
||
module Result = | ||
|
||
let getMessage res = | ||
match res with | ||
| Ok m -> m | ||
| Error m -> m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<GenerateProgramFile>false</GenerateProgramFile> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Remove="ISADotNet.Validation\**" /> | ||
<EmbeddedResource Remove="ISADotNet.XLSX\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="Utils.fs" /> | ||
<Compile Include="AssayTests.fs" /> | ||
<Compile Include="Main.fs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Expecto" Version="9.*" /> | ||
<PackageReference Include="FSharp.Data" Version="5.0.2" /> | ||
<PackageReference Include="NJsonSchema" Version="10.8.0" /> | ||
<PackageReference Include="YoloDev.Expecto.TestSdk" Version="0.*" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" /> | ||
<ProjectReference Include="..\..\src\arcIO.NET\arcIO.NET.fsproj" /> | ||
<PackageReference Update="FSharp.Core" Version="7.0.300-beta.23127.2" /> | ||
</ItemGroup> | ||
</Project> |