Skip to content

Commit

Permalink
Add tests for output file locations after package execution
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Feb 27, 2024
1 parent f5d8329 commit b5cc12d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/arc-validate.Tests/CLITests/ValidateCommandTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ let ``ValidateCommand CLI Tests`` =
fun tool args proc -> Expect.isFalse (proc.Result.Output.Contains("Package test not installed. You can run run arc-validate package install ")) (ErrorMessage.withProcessDiagnostics "incorrect console output" proc tool args )
"Console Output is correct" ,
fun tool args proc -> Expect.isTrue (proc.Result.Output.Contains("If you can read this in your console, you successfully executed test package v2.0.0!")) (ErrorMessage.withProcessDiagnostics "incorrect console output" proc tool args )

"Ouptput files exist",
fun tool args proc ->
Expect.isTrue (Directory.Exists("fixtures/arcs/inveniotestarc/.arc-validate-results")) (ErrorMessage.withProcessDiagnostics ".arc-validate-results does not exist" proc tool args )
Expect.isTrue (File.Exists("fixtures/arcs/inveniotestarc/.arc-validate-results/test/badge.svg")) (ErrorMessage.withProcessDiagnostics ".arc-validate-results/test/badge.svg does not exist" proc tool args )
Expect.isTrue (File.Exists("fixtures/arcs/inveniotestarc/.arc-validate-results/test/validation_report.xml")) (ErrorMessage.withProcessDiagnostics ".arc-validate-results/test/validation_report.xml does not exist" proc tool args )
]
])
testSequenced (testList "package test -i fixtures/arcs/inveniotestarc" [
Expand Down

0 comments on commit b5cc12d

Please sign in to comment.