-
Notifications
You must be signed in to change notification settings - Fork 28
/
developer_guide.txt
33 lines (30 loc) · 1.57 KB
/
developer_guide.txt
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
PPX EXPECT
==========
This directory contains the logic used by [ppx_expect] to:
- Expand [let%expect_test], [[%expect]], etc. extension points in
files containing expect tests
- Report the results of these tests to the inline testing harness at
runtime
- Rewrite failing tests as [.corrected] files
The layout of the subdirectories is summarized below:
ppx/ppx_expect
└── config: [Expect_test_config], containing default values for
│ │ overridable user-facing test configurations
│ └── types: [Expect_test_config_types], which defines the interface
│ for [Expect_test_config]
└── evaluator: The [ppx_expect_evaluator] executable that jenga
│ expects to exist when running tests; it is in fact
│ unnecessary and therefore empty in this rewrite, and we
│ hope to delete it soon
└── runtime: [Ppx_expect_runtime], containing the logic used to
│ evaluate expect tests at runtime
└── src: [Ppx_expect], the ppx rewriter that replaces [ppx_expect]
│ extensions with the appropriate logic from
│ [Ppx_expect_runtime]
└── test: [Ppx_expect_test], containing examples of passing expect
│ tests that stress different facets of the testing framework,
│ taken from the old [ppx_expect] framework
└── example: [Expect_test_examples], with small examples
└── no-output-patterns: [Ppx_expect_test_no_output_patterns],
additional tests used by the old
[ppx_expect] framework