Skip to content

Commit

Permalink
add a test package that uses ARCExpect v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 11, 2024
1 parent 91b434d commit 911beaf
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions StagingArea/test/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
let [<Literal>]PACKAGE_METADATA = """(*
---
Name: test
MajorVersion: 4
MinorVersion: 0
PatchVersion: 0
Publish: true
Summary: this package is here for testing purposes only.
Description: this package is here for testing purposes only.
Authors:
- FullName: John Doe
Email: [email protected]
Affiliation: University of Nowhere
AffiliationLink: https://nowhere.edu
- FullName: Jane Doe
Email: [email protected]
Affiliation: University of Somewhere
AffiliationLink: https://somewhere.edu
Tags:
- Name: validation
- Name: my-package
- Name: thing
ReleaseNotes: "use in-package metadata"
---
*)"""

#r "nuget: ARCExpect, 3.0.0"

open ARCExpect
open Expecto
let test_package =
Setup.ValidationPackage(
metadata = Setup.Metadata(PACKAGE_METADATA),
CriticalValidationCases = [
test "yes" {Expect.equal 1 1 "yes"}
]
)

test_package
|> Execute.ValidationPipeline(
basePath = System.Environment.CurrentDirectory
)

0 comments on commit 911beaf

Please sign in to comment.