You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GENERATORS.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,10 @@ To generate a practice exercise's tests, the test generator:
15
15
16
16
### Step 1: read `canonical-data.json` file
17
17
18
-
The test generator parses the test cases from the exercise's `canonical-data.json` using the [JSON.net library](https://www.newtonsoft.com/json).
18
+
The test generator parses the test cases from the exercise's `canonical-data.json` using the [System.Text.Json namespace](https://learn.microsoft.com/en-us/dotnet/api/system.text.json).
19
19
20
20
Since some canonical data uses nesting, the parsed test case includes an additional `path` field that contains the `description` properties of any parent elements, as well as the test case's own `description` property.
21
21
22
-
Note: the JSON is parsed to an `ExpandoObject` instance, which makes dealing with dynamic data easier.
23
-
24
22
### Step 2: omit excluded tests from `tests.toml` file
25
23
26
24
Each exercise has a `tests.toml` file, in which individual tests can be excluded/disabled.
@@ -44,7 +42,7 @@ Finally, the output of the rendered template is written to the exercise's test f
44
42
45
43
## Templates
46
44
47
-
The templates are rendered using the [Handlebars.Net library](https://github.com/Handlebars-Net/Handlebars.Net), which supports [handlebars syntax](https://handlebarsjs.com/).
45
+
The templates are rendered using the [Scriban library](https://github.com/scriban/scriban/).
0 commit comments