@suffolklitlab/alkiln 5.13.3-feat-random-4 → 5.13.4-feat-textarea-1

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.
Files changed (33) hide show
  1. package/.github/workflows/github_server.yml +1 -1
  2. package/.github/workflows/playground.yml +1 -2
  3. package/.github/workflows/unit_tests.yml +1 -1
  4. package/CHANGELOG.md +3 -21
  5. package/_alkiln_meta/gherkin_parsed_example.json +1546 -0
  6. package/_alkiln_meta/shift_logs.js +75 -0
  7. package/action.yml +10 -26
  8. package/action_for_github_server/action.yml +27 -31
  9. package/lib/docassemble/setup.js +3 -3
  10. package/lib/docassemble/takedown.js +2 -2
  11. package/lib/run_cucumber.js +53 -40
  12. package/lib/scope.js +12 -33
  13. package/lib/steps.js +67 -76
  14. package/lib/utils/Log.js +164 -318
  15. package/lib/utils/reports.js +25 -42
  16. package/lib/utils/session_vars.js +57 -77
  17. package/package.json +7 -18
  18. package/tests/log_codes/check_codes.sh +13 -17
  19. package/tests/log_codes/log_code_expected_instances.txt +0 -58
  20. package/tests/unit_tests/log.test.js +41 -17
  21. package/lib/globals.js +0 -10
  22. package/lib/setup/TestGenerator.js +0 -1757
  23. package/lib/setup/artifacts.js +0 -20
  24. package/lib/setup/generate.js +0 -42
  25. package/lib/setup/get_Gherkin_AST.js +0 -26
  26. package/lib/setup/validate.js +0 -89
  27. package/lib/utils/get_error_stacks.js +0 -16
  28. package/lib/utils/set_sources_paths.js +0 -98
  29. package/tests/unit_tests/constrained_random_answers/invalid.fixtures.js +0 -177
  30. package/tests/unit_tests/constrained_random_answers/invalid.test.js +0 -251
  31. package/tests/unit_tests/constrained_random_answers/valid.fixtures.js +0 -973
  32. package/tests/unit_tests/constrained_random_answers/valid.test.js +0 -563
  33. /package/docs/{expected_internal_results.md → expected_inernal_results.md} +0 -0
@@ -160,7 +160,7 @@ jobs:
160
160
  #### Developer note: You can probably leave the rest out
161
161
  #### To learn more, see https://assemblyline.suffolklitlab.org/docs/alkiln/writing/#optional-inputs
162
162
  ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
163
- ALKILN_VERSION: random
163
+ ALKILN_VERSION: "5.13.4-feat-textarea-1"
164
164
 
165
165
  #### Developer note: Example of making an issue when tests fail
166
166
  #### that includes the text of the failure output file
@@ -76,10 +76,9 @@ jobs:
76
76
  DOCASSEMBLE_DEVELOPER_API_KEY: "${{ env.DOCASSEMBLE_DEVELOPER_API_KEY }}"
77
77
  #### Developer note: See https://assemblyline.suffolklitlab.org/docs/alkiln/writing/#optional-inputs
78
78
  #### You can probably leave this out
79
- ALKILN_MAX_RANDOM_TESTS_PER_SCENARIO: 10
80
79
  # Internal: docassemble changes sometimes break @a11y tests. That is
81
80
  # a da problem, not ours. We will trigger these tests manually when we
82
81
  # want to check up on this.
83
82
  ALKILN_TAG_EXPRESSION: "${{ env.ALKILN_TAG_EXPRESSION }}"
84
83
  #### Developer note: You can probably leave this out
85
- ALKILN_VERSION: random
84
+ ALKILN_VERSION: "5.13.4-feat-textarea-1"
@@ -27,7 +27,7 @@ jobs:
27
27
  - run: npm run unit
28
28
  # Artifacts
29
29
  - name: upload unit tests artifacts folder
30
- uses: actions/upload-artifact@v4
30
+ uses: actions/upload-artifact@v3
31
31
  # This will upload even if a previous step has failed
32
32
  if: ${{ always() }}
33
33
  with:
package/CHANGELOG.md CHANGED
@@ -47,30 +47,12 @@ Format:
47
47
 
48
48
  ### Added
49
49
 
50
- - Add the `constrained random answers` Step. You must put the Step in a "constrained random test template" Scenario which goes in a "constrained random test template" file - a `.feature` file that starts with "alkiln_random". The file **MUST have ONLY 1 Scenario per template file** at the moment. The Step is pretty strict. If there are irregularities, it will probably fail, but it will fail quickly. It is flexible about number of tests, though, and will default to 1. Closes [#962](https://github.com/SuffolkLITLab/ALKiln/issues/962).
51
- - Add `ALKILN_MAX_RANDOM_TESTS_PER_SCENARIO` optional environment variable for the above `constrained random answers` Step. Default value is `40` until we hear otherwise.
52
- - Regular tests that have incorrect syntax will fail more quickly now - very near the start. So will invalid "constrained random test template" files. This will be a little slower for GitHub Sandbox tests right now, but still faster than it has been in the past. Closes [#972](https://github.com/SuffolkLITLab/ALKiln/issues/972).
53
-
54
- ### Changed
55
-
56
- - Improve report indentation and tweak styling.
57
- - Clarify some logs, including addressing bite-sized issues like [#981](https://github.com/SuffolkLITLab/ALKiln/issues/981).
58
- - The report now shows the name of every Step that gets run in a test.
50
+ - Adds a linear Step to properly set multi-line values for `textarea`s (closes [#1003](https://github.com/SuffolkLITLab/ALKiln/issues/1003)). We are unable to fix the current "set variable" linear Step for this. See [this comment on #655](https://github.com/SuffolkLITLab/ALKiln/issues/655#issuecomment-2876491571).
59
51
 
60
52
  ### Internal
61
53
 
62
- - Added: `lib/globals.js` file to hold some shared constant values across the framework. It should NOT manage state. We may want to change the name to `constants.js` or `global_contants.js`. Let's see how it serves us.
63
- - Added: executable scripts for more setup steps - managing the artifacts path (at the start of a run) and validating and generating files.
64
- - Changed: `Log` now prioritizes what folder it stores files in in this order:
65
- 1. Use the argument to use an existing folder and save that to runtime_config.json at root.
66
- 2. Use the argument to make a new folder with that name and save that to runtime_config.json at root.
67
- 3. Use the alread-existing folder name value in runtime_config.json at root
68
- 4. Create a new folder and save that to runtime_config.json at root
69
- - Changed: Add `.error()` to `Log` for visual clarity when storing an error to throw later. We need to discuss this behavior and its return value. To make that work Logs can now get the `error` prop without throwing an error.
70
- - Changed: the Story Table step now accepts multiple ids and stops at whatever id it reaches first. I highly recommend that only ALKiln generated tests use this feature. We may avoid documenting it unless authors ask for it.
71
- - Changed: `.gitignore` and `.npmignore` more things
72
- - Fixed: log codes checker obob.
73
- - Fixed: updated `actions/upload-artifact@v3` to `actions/upload-artifact@v4`
54
+ - Changes how Log joins logs.
55
+ - Allows reports to accept log messages as an argument without duplicating metadata text. Debug logs will still save duplicate messages.
74
56
 
75
57
  ## [5.13.4] - 2025-01-11
76
58