-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test package that uses ARCExpect v3
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 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
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 | ||
) |