Eberhard Beilharz
229bdf8270
maint(resources): nest unit tests under parent block
...
This adds a modified `mocha-teamcity-reporter` that allows to nest the
unit tests under the parent block.
Fixes : #14839
Test-bot: skip
2025-10-06 16:09:47 +02:00
Eberhard Beilharz
34c43b1e15
refactor(web): cleanup in test scripts
...
Also use common function for running web types tests.
Test-bot: skip
2025-09-30 17:40:15 +02:00
Marc Durdin
2726050601
maint(common): rename and move node-related script functions into node.inc.sh
...
Consolidates the node-related script functions into node.inc.sh, as part
of cleaning up the build scripts and making them easier to maintain into
the future.
Fixes : #14447
2025-08-02 13:34:29 +10:00
Marc Durdin
f394245636
maint(common): consolidate builder scripts
...
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.
Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh
Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
android/build.sh.
* Renames functions in builder-basic.inc.sh
More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.
Fixes : #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526
maint(common): rename shellHelperFunctions.sh to utils.inc.sh
...
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.
Fixes : #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Joshua Horton
155c1a2b12
maint: update mocha
...
Some of the npm audit warnings left after #13897 require an updated `mocha` version to remedy. As we only really use `mocha` to do unit-testing, it should be safe to update if all of our existing tests pass with the new version.
Test-bot: skip
2025-05-13 14:02:02 +07:00
Joshua Horton
b02f1d18bc
Merge pull request #13800 from keymanapp/change/web/lint-kmwstring
...
change(web): lint kmwstring web-utility 🧶
2025-05-06 08:16:56 +07:00
Joshua Horton
1438704ee0
Merge pull request #13819 from keymanapp/maint/web/use-builder_is_ci_build
...
chore(web): replace --ci flag with builder_is_ci_build
2025-05-06 08:16:37 +07:00
Joshua Horton
cb5e3035a7
chore(web): replace --ci flag with builder_is_ci_build
...
Fixes : #12640
2025-05-02 09:39:39 +07:00
Joshua Horton
de0eaa411b
change(web): lint kmwstring web-utility
...
This removes the exception in #13797 for KMWString, properly including the newly-refactored code in linting as well.
2025-04-30 09:01:47 +07:00
Joshua Horton
16fb2fef49
Merge branch 'chore/web/add-string-handling-unit-tests' into refactor/web/eliminate-kmwstring-side-effects
2025-04-30 08:57:36 +07:00
Joshua Horton
7217d7cf72
feat(web): add more indexOf, lastIndexOf unit test statements
...
Co-authored-by: Eberhard Beilharz <eb1@sil.org>
2025-04-30 08:42:27 +07:00
Joshua Horton
4e4fbc174a
Merge branch 'chore/web/replace-kmwfromcharcode' into chore/web/add-string-handling-unit-tests
2025-04-30 08:33:02 +07:00
Joshua Horton
efb14e7b2a
Merge branch 'change/web/lint-web-utils' into chore/web/replace-kmwfromcharcode
2025-04-30 08:32:09 +07:00
Joshua Horton
80f95d979a
change(web): lint engine/common/web-utils
...
Does not lint kmwstring.ts, as that has an existing rework. A separate PR will be added as a followup to the refactor PR (#13726 ) to handle it.
2025-04-30 08:30:06 +07:00
Joshua Horton
43eb195ee1
fix(web): patch up detected behavior change
2025-04-29 10:19:38 +07:00
Joshua Horton
e8125898e5
Merge branch 'chore/web/add-string-handling-unit-tests' into refactor/web/eliminate-kmwstring-side-effects
2025-04-29 10:18:54 +07:00
Joshua Horton
b3633ec4d0
feat(web): add additional edge-case unit tests
...
Co-authored-by: Eberhard Beilharz <eberhard_beilharz@sil.org>
2025-04-29 10:12:10 +07:00
Joshua Horton
eb7bd3adba
chore(web): remove artifacts re: potential method renames
2025-04-22 11:59:16 +07:00
Joshua Horton
9993a33f1b
chore(web): remove side-effect field from web-utils package.json
2025-04-22 11:52:44 +07:00
Joshua Horton
dc450cde9e
chore(web): finalize removal of side-effect KMWString implementation
2025-04-22 11:40:57 +07:00
Joshua Horton
f8ea902fd9
refactor(web): refactor _kmwCharAt
2025-04-22 11:40:57 +07:00
Joshua Horton
70c1920854
refactor(web): refactor _kmwSlice, _kmwSubstr, _kmwSubstring
2025-04-22 11:40:57 +07:00
Joshua Horton
2cb6e5a191
refactor(web): refactor _kmwIndexOf, _kmwLastIndexOf
2025-04-22 11:40:57 +07:00
Joshua Horton
a53f2dcd10
chore(web): refactor _kmwCharCodeAt
2025-04-22 11:40:39 +07:00
Joshua Horton
418f3d6aec
chore(web): update all Web engine uses of kmwLength, kmwCodePointToCodeUnit, kmwCodeUnitToCodePoint
2025-04-22 10:17:07 +07:00
Joshua Horton
4863e95c46
refactor(web): refactor _kmwCodePointToCodeUnit, _kmwCodeUnitToCodePoint
2025-04-22 10:17:01 +07:00
Joshua Horton
f934de23b5
refactor(web): refactor _kmwLength
2025-04-22 10:16:54 +07:00
Joshua Horton
b368f5fe6a
refactor(web): refactor _kmwNextChar, _kmwPrevChar helpers
2025-04-22 10:16:47 +07:00
Joshua Horton
e5a5305946
chore(web): drop .only from test suite
2025-04-22 09:12:35 +07:00
Joshua Horton
be15fc1c3f
chore(web): add unit tests for SMP-aware string-handling helper methods
2025-04-21 13:09:01 +07:00
Joshua Horton
5b14b858fb
chore(web): replace kmwFromCharCode with its ES6 equivalent
2025-04-21 08:36:59 +07:00
Joshua Horton
b2598e76ba
chore(web): fix coverage-reporting artifact
...
Fixes : #13195
2025-02-12 15:56:54 +07:00
Eberhard Beilharz
432ab7055f
chore(web): rename test files and folders
...
This change renames the test files for Web according to the discussion at
the Keyman conference in November 2024. It also renames some folders from
`test` to `tests`.
2024-11-26 17:10:19 +01:00
Eberhard Beilharz
d4a049f614
refactor(web): move to web/src/tools/es-bundling
...
Addresses code review comments.
2024-09-11 09:44:58 +02:00
Eberhard Beilharz
6553bd6233
refactor(web): move common/web/es-bundling → common/tools/es-bundling
...
Fixes : #12385
2024-09-10 18:57:42 +02:00
Eberhard Beilharz
a6d2d02e61
refactor(web): move common/web/utils to web/src/engine/common/web-utils/
...
Fixes:#12025
2024-09-10 18:12:46 +02:00