-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.dhall
More file actions
43 lines (37 loc) · 1.17 KB
/
package.dhall
File metadata and controls
43 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{-|
# Replica Dhall
REPLica dhall is a dhall package for the development of
[REPLica tests](https://github.com/ReplicaTest/Replica)
Aside the `Replica part`, the package re-export the `Prelude`
version it uses.
Here is an example of a Replica test file in dhall:
```dhall
let Replica = ../package.dhall
let Prelude = Replica.Prelude
let Test = Replica.Test
let Expectation = Replica.Expectation
let Status = Replica.Status
let tests : Replica.Type
= toMap
{ hello_world = Test::{command = "echo \"Hello, World!\""}
, hello_world_exact = Replica.Test ::
{ command = "echo \"Hello, World!\""
, stdOut = Expectation.Exact "Hello, World!\n"
}
, hello_world_status = Test ::
{ command = "echo \"Hello, World!\""
, status = Some Status.Success
}
, hello_world_status_alternative = Test.Success ::
{ command = "echo \"Hello, World!\""
}
, hello_stdErr = Test ::
{ command = "echo \"Hello, World!\" >&1"
, stdOut = Expectation.Ignored
, stdErr = Expectation.Golden
}
}
in tests
```
-}
./Replica/package.dhall /\ { Prelude = ./Prelude.dhall }