@suffolklitlab/alkiln 5.8.1 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/github_server.yml +11 -7
- package/.github/workflows/playground.yml +2 -2
- package/CHANGELOG.md +17 -0
- package/docs/expected_inernal_results.md +15 -0
- package/lib/scope.js +257 -134
- package/lib/steps.js +171 -34
- package/lib/utils/log.js +16 -5
- package/package.json +1 -1
- package/tests/unit_tests/fields.fixtures.js +477 -103
- package/tests/unit_tests/getAllFields.test.js +22 -8
- package/tests/unit_tests/getMatchingRows.test.js +44 -2
- package/tests/unit_tests/html.fixtures.js +66 -4
- package/tests/unit_tests/matches.fixtures.js +20 -2
- package/tests/unit_tests/tables.fixtures.js +22 -5
|
@@ -3,7 +3,7 @@ name: GitHub server installation
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
# Default "opened", "reopened", "synchronize". "edited" fires when the PR title gets edited, etc.
|
|
6
|
-
|
|
6
|
+
pull_request:
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
inputs:
|
|
9
9
|
tags:
|
|
@@ -42,13 +42,14 @@ jobs:
|
|
|
42
42
|
|
|
43
43
|
- name: ALKiln - Start the isolated temporary docassemble server on GitHub
|
|
44
44
|
id: github_server
|
|
45
|
-
#### Developer note: you'll need to replace `.` with the path to
|
|
46
|
-
####
|
|
45
|
+
#### Developer note: you'll need to replace `.` with the path to ALKiln’s
|
|
46
|
+
#### repo and branch. For example, for version 5, put
|
|
47
47
|
#### suffolkLITLab/ALKiln/action_for_github_server@v5
|
|
48
|
+
#### Come back and update this version later if you want the latest
|
|
48
49
|
uses: ./action_for_github_server
|
|
49
50
|
with:
|
|
50
51
|
CONFIG_CONTENTS: "${{ secrets.CONFIG_CONTENTS }}"
|
|
51
|
-
#### Developer note: Set this to
|
|
52
|
+
#### Developer note: Set this to true to show docker logs and
|
|
52
53
|
#### allow ALKiln to create the docker logs output artifact.
|
|
53
54
|
SHOW_DOCKER_OUTPUT: "${{ github.event.inputs.show_docker_output }}"
|
|
54
55
|
- run: echo "ALKiln finished starting the isolated GitHub docassemble server"
|
|
@@ -77,9 +78,10 @@ jobs:
|
|
|
77
78
|
|
|
78
79
|
- name: "Run ALKiln tests"
|
|
79
80
|
if: ${{ success() }}
|
|
80
|
-
#### Developer note: you'll need to replace `.` with the path to
|
|
81
|
-
####
|
|
82
|
-
#### For example suffolkLITLab/ALKiln@v5
|
|
81
|
+
#### Developer note: you'll need to replace `.` with the path to ALKiln’s
|
|
82
|
+
#### repo and branch and leave off the trailing `/`
|
|
83
|
+
#### For example, for version 5 put suffolkLITLab/ALKiln@v5
|
|
84
|
+
#### Come back and update this version later if you want the latest
|
|
83
85
|
uses: ./
|
|
84
86
|
with:
|
|
85
87
|
SERVER_URL: "${{ steps.github_server.outputs.SERVER_URL }}"
|
|
@@ -87,5 +89,7 @@ jobs:
|
|
|
87
89
|
INSTALL_METHOD: "server"
|
|
88
90
|
#### Developer note: Useful for temporarily shortening ALKiln tests
|
|
89
91
|
#### to debug the docker install step
|
|
92
|
+
#### Use a "tag expression" to specify which tagged tests to run (https://cucumber.io/docs/cucumber/api/#tag-expressions)
|
|
90
93
|
# ALKILN_TAG_EXPRESSION: @a_tag_expression
|
|
94
|
+
# ALKILN_VERSION: 2column
|
|
91
95
|
|
|
@@ -3,7 +3,7 @@ name: Playground installation
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
# Default: opened, reopened, synchronize. "edited" is not what we want.
|
|
6
|
-
|
|
6
|
+
pull_request:
|
|
7
7
|
workflow_dispatch:
|
|
8
8
|
inputs:
|
|
9
9
|
tags:
|
|
@@ -55,4 +55,4 @@ jobs:
|
|
|
55
55
|
#### to debug the docker install step
|
|
56
56
|
# ALKILN_TAG_EXPRESSION: @a_tag_expression
|
|
57
57
|
#### Developer note: you probalby don't need this
|
|
58
|
-
# ALKILN_VERSION:
|
|
58
|
+
# ALKILN_VERSION: 2column
|
package/CHANGELOG.md
CHANGED
|
@@ -45,6 +45,23 @@ Format:
|
|
|
45
45
|
|
|
46
46
|
<!-- ## [Unreleased] -->
|
|
47
47
|
|
|
48
|
+
## [5.9.0] - 2024-02-11
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- New feature: 2-column Story Tables that work without the trigger variable. Now column 1, "var", should only contain the actual variable name with no proxies (x, i, j, etc). For example, instead of `x[i].name.first` the var column should now contain `users[0].name.first`. Column 2 is the same as it was before - the answer for the field. See [#582](https://github.com/SuffolkLITLab/ALKiln/issues/582).
|
|
53
|
+
- Added console logs enhancing the "progress dots". You don't usually see those till after the tests run. Now more of them should show up during the test run and the name of the Scenario being tested should appear there as well. Unfortunately, the first Scenario behaves differently. We're consulting with the creators of cucumber to understand why that's happening.
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
- Reduced a couple error messages. See [#573](https://github.com/SuffolkLITLab/ALKiln/issues/573) and [#452](https://github.com/SuffolkLITLab/ALKiln/issues/452).
|
|
57
|
+
|
|
58
|
+
### Internal
|
|
59
|
+
- Internal tests: Fixed Scenarios that had failed but had correct reports were instead passing.
|
|
60
|
+
- Internal tests: Allow more types of "expected status" for when we test dealing with "undefined", "skipped", etc.
|
|
61
|
+
- Internal tests: Changed name suffix values in tests. Assembly Line changed its punctuation a while ago.
|
|
62
|
+
- Added doc explaining what internal test results we expect to see as people new to the project are surprised by all our red Fs and yet passing tests.
|
|
63
|
+
- Changed our workflow's `on: pull_request_target` to `on: pull_request`. When the former runs tests, `checkout` checks out the target branch's files. It was unhelpful to test the files of the old branch with the new version of ALKiln. The latter checks out the head branch's files. We should be good now.
|
|
64
|
+
|
|
48
65
|
## [5.8.1] - 2023-12-28
|
|
49
66
|
|
|
50
67
|
### Fixed
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# What results are we expecting in our own tests?
|
|
2
|
+
|
|
3
|
+
Our internal test results look a little strange. For example, they sometimes initially look like they're failing, but eventually pass. That's because we're testing that our tests respond appropriately to authors' failures as well as successees.
|
|
4
|
+
|
|
5
|
+
These are the results that we expect:
|
|
6
|
+
|
|
7
|
+
## Cucumber feature tests {#cucumber}
|
|
8
|
+
|
|
9
|
+
- Many red `F`s in our cucumber "progress bar"
|
|
10
|
+
- Final results to show all Scenarios passing
|
|
11
|
+
- Cucumber seems to be unable to print the name of the first scenario
|
|
12
|
+
|
|
13
|
+
## Unit tests {#unit}
|
|
14
|
+
|
|
15
|
+
All these must pass
|