Commit graph

36 commits

Author SHA1 Message Date
Joshua A. Horton
50bc5c5645 fix(web): forgot partial-change test.sh commit 2022-10-17 13:07:44 +07:00
Marc Durdin
435aade36e chore(web): add keyboard-processor test to top-level web test script 2022-10-13 12:39:30 +11:00
Joshua A. Horton
5660fbfd04 fix(web): top-level -ci flag wasn't chaining correctly 2022-10-03 15:23:08 +07:00
Joshua A. Horton
9f952cd6eb chore(web): retools input-processor build, test scripts 2022-10-03 15:03:13 +07:00
Joshua A. Horton
cf1088027b fix(common/web): mocks did not update deadkey positions on context manipulation 2022-09-22 08:57:45 +07:00
Marc Durdin
4434cdc30d chore(web): disable browserstack on non-web-specific builds
Because BrowserStack tests are unreliable, I am disabling them for any
builds that are not specifically targeting web. Two ways that the tests
can be enabled:

1. Include '(web)' in the PR title
2. Include the label test-browserstack

This only impacts builds in the CI test environment, not anything else.

See build-utils-ci.inc.sh for helper functions for accessing PR
metadata, and build-utils-ci.test.sh for unit tests for this
functionality.
2022-09-11 07:19:18 +10:00
Marc Durdin
ab54c0ecb9 chore(common): more bin bashes 2022-07-25 16:03:22 +10:00
Marc Durdin
05a4c33200 chore(web): move common/core/web to common/web
Relates to #5816.

Moves folders under common/core/web to common/web:

* input-processor -> common/web/input-processor
* keyboard-processor -> common/web/keyboard-processor
* tools/recorder -> common/web/recorder
* tools/sentry-manager -> common/web/sentry-manager
* utils -> common/web/utils

Updates scripts and configuration to point to new folders.
2022-05-18 06:01:03 +10:00
Marc Durdin
21744d0ed6 chore(web): fixup test paths
Fixes some of the test paths required for core tests.
2022-05-09 13:29:41 +10:00
Marc Durdin
4d94786852 chore(web): replace lerna with npm workspaces and ts projects
Fixes #6320.

Part 1 of moving from lerna to a simpler, maintained monorepo solution,
using TypeScript Projects and NPM Workspaces.

There is more work to be done here. At this point, KeymanWeb builds and
runs without errors, but the built file is substantially different,
mostly in include order.

Using TypeScript Projects, we move away from the need to run build
scripts in various locations for almost all the Typescript modules.

TODO: Embedded versions and tests have not been verified.

TODO: developer/server is not yet verified.

TODO: developer/js (needs a rename!) is not yet verified.

TODO: Currently, the predictive-text folder needs refactoring to move
the construction of the worker wrapper out of the Predictive Text build
and into the final assembly of keymanweb.js (as it should be valid to
run it as a separate .js anyway).

TODO: Most of the `<reference>` paths need to be re-verified. Ideally
there should be no references outside the current module for any given
.ts.

TODO: The embedded vs browser vs node (headless) builds should be tidied
up for consistency so that it's obvious what depends on what. This is
currently messiest in the predictive-text folder, where the output names
diverge from the filenames and the various files are mixed in the same
folder (as evidenced by the exclusions listed in each tsconfig.json).

TODO: `npm install` should be removed from most build scripts and
instead `npm ci` (#6196) should be run only once from the top-level
folder for any given build. I've had eliminated side-effects from the
`install` action for npm, which makes it easier to reason about state.

TODO: verify_npm_setup and related functions can probably be eliminated.

TODO: most of the build scripts should be largely eliminated for web.

TODO: several ts projects use inconsistent output folders.

TODO: it may be possible to generate a .d.ts for models/types so that
we can use a consistent reference for those as well.

TODO: build.sh, tsconfig.json should always be in the module's top-level
folder, not in a subfolder such as src (e.g. see input-processor/src,
keyboard-processor/src, web/source).

TODO: resources/web-environment should be in common/web.

TODO: other js node_modules imports should be wrapped like es6-shim.

TODO: fix up the publish code for npm modules

TODO: eliminate version numbers from package.json if possible?

Whew, that's most of the stuff I noticed!
2022-04-12 21:02:33 +10:00
Marc Durdin
9f153ecc17 chore(common): cleanup sh global color variables
Some of the global color variables in shellHelperFunctions.sh were a
little dangerously named. This cleans that up and removes a couple of
redundant functions from other locations.

mac/bashHelperFunctions.sh should be removed and replaced with
references to shellHelperFunctions.sh -- but I wanted to leave that for
a separate branch.
2022-03-10 10:12:09 +11:00
Marc Durdin
5fac633fb6 fix(common): build script help param
When working on a new build script, I tripped over the `-?` question
mark help parameter here, as it needs to be escaped. Opted to fix all
the instances in our scripts, although AFAICT there would not have been
current bugs arising from this, as there were no conflicting one
character options lower in the case list.
2021-05-28 09:50:40 +10:00
jahorton
25277eaa0e chore(common/core/web): Merge branch 'master' into feat/common/core/web/input-processor-unit-tests 2020-11-10 08:27:15 +07:00
jahorton
905300b114 change(web): adds set -e to test.sh 2020-10-09 16:08:00 +07:00
jahorton
764f4294c3 feat(common/core/web): input processor unit test setup 2020-10-07 12:04:45 +07:00
jahorton
47fac74d97 fix(web): unit test script failure on compilation failures 2020-09-21 10:11:59 +07:00
jahorton
1fea969719 change(web): better recorder build management 2020-05-01 08:06:12 +07:00
jahorton
abe0da911d change(web/engine): addresses PR review concerns 2020-04-30 08:40:46 +07:00
jahorton
3718841ff7 chore(web/engine): updates change in build option name 2020-04-29 16:43:41 +07:00
jahorton
7970138b19 fix(web): fixes path for keyboard-processor unit test call 2020-04-29 16:17:35 +07:00
jahorton
cf3a7e4efe fix(web/engine): headless tests may trigger KMW test script fail 2020-04-29 16:17:34 +07:00
jahorton
d072af7af6 feat(web/engine): links KeyboardProcessor tests in CI test script 2020-04-29 16:17:34 +07:00
jahorton
efe440c659 fix(web): unit test reporting stability 2019-11-27 09:53:42 +07:00
Joshua A. Horton
4e1b72323f Finishes basic unit-tests for TouchAliasElement. 2019-01-27 21:10:13 +07:00
Joshua A. Horton
fe06a01fc1 Starts development of touch-alias unit-testing. 2019-01-27 18:49:45 +07:00
Marc Durdin
0daab7130e Fixup cmdline 2018-07-06 14:43:51 +07:00
Marc Durdin
7a7c6851f7 Test debug log for karma - try to find out why it is falling over 2018-07-06 14:41:56 +07:00
Joshua A. Horton
6970c86477 Relocates the recorder into the general /source/ directory + ties its build into the test command. 2018-02-13 09:46:23 +07:00
Joshua A. Horton
737df5372a Misnamed a variable... 2018-02-07 12:20:26 +07:00
Joshua A. Horton
2e939d107e Redid the OS check. 2018-02-07 12:11:24 +07:00
Joshua A. Horton
5b7796a7b9 Consolidated the browser differentiation within test.sh as suggested by Darcy. 2018-02-07 12:03:14 +07:00
Joshua A. Horton
00d6238fec Polish and cleanup. 2018-02-07 10:58:19 +07:00
Joshua A. Horton
386cc3cf49 Creates separate browser testing configs for win, mac, and linux. 2018-01-29 16:00:24 +07:00
Joshua A. Horton
adb38ff13b Implements testing over a more robust set of browsers. 2018-02-06 12:37:42 +07:00
Joshua A. Horton
b154dbc566 A basic, initial set of tests with the infrastructure necessary to link nicely with our TeamCity CI. 2018-02-05 15:15:10 +07:00
Joshua A. Horton
6a32d91941 Further infrastructure setup; the new pattern allows deliberate reloading of KMW. 2018-02-05 12:52:05 +07:00