Jason Bedard
2624d8941f
test: run e2e tests on pre-compiled packages
...
The NPM packages being tested must be pre-compiled and the tar packages specified via --package. This way the real packages such as snapshots, release artifacts or cached packages can be tested. Previously the e2e tests compiled and packaged during test execution.
2022-09-26 12:44:46 +02:00
Jason Bedard
decd4692be
test: catch and log all errors include test setup
2022-09-19 16:34:49 -04:00
Alan Agius
6a8511d1f9
test: don't run git clean on test failure
...
This allows debugging the test failures when running in debug mode.
(cherry picked from commit e8e9df875722d23bbfd11c70ad17c492353976ce)
2022-09-09 17:51:11 +02:00
Jason Bedard
2ef2d543b1
test: remove ci specific logic
2022-08-31 16:27:18 -04:00
Jason Bedard
187ab7df58
test: add missing yargs config
2022-08-11 11:25:42 -04:00
Jason Bedard
7c6a4000fb
test: add shard and test type/name information to test logging
2022-07-28 19:24:02 +02:00
Jason Bedard
2e4925b6d6
test: revert local test project file changes on test completion
2022-07-28 09:42:18 +02:00
Alan Agius
37841d972e
ci: filter yarn and npm tests during E2E test setup
...
This is a trick to force tests that take longer to run to run on different shards when using different package managers.
2022-07-13 11:58:57 -07:00
Jason Bedard
7dd82282bb
test: do not depend on a global npm binary
2022-06-24 08:53:15 -04:00
Alan Agius
2c95ea7415
test: couple of clean ups in e2e tests
...
Split tests and remove disabled tests
2022-06-14 19:46:08 +02:00
Charles Lyding
4c3a956c1a
test: assert catch clause variable type before usage in E2E tests
...
Prepares the E2E tests for the eventual change of enabling the
TypeScript `useUnknownInCatchVariables` option. This option provides additional
code safety by ensuring that the catch clause variable is the proper type before
attempting to access its properties. Similar changes will be needed in the other
packages in the repository prior to enabling `useUnknownInCatchVariables`.
2022-06-14 11:28:21 +02:00
Jason Bedard
581602e8e7
test: use random port for ng serve e2e tests
2022-06-10 09:41:28 -04:00
Alan Agius
b764ecb1fa
test: minor clean up of runSteps
logic
...
Remove redundant vars and imports
2022-06-08 12:08:34 -04:00
Jason Bedard
9c26e2850c
test: run tests in isolated subprocess
2022-06-07 11:38:58 -04:00
Jason Bedard
a6faf972ec
test: separate test vs test setup execution
2022-06-07 11:38:58 -04:00
Jason Bedard
c74bb5652c
test: extract test runner method
2022-06-07 11:38:58 -04:00
Jason Bedard
59a1502272
build: fix typescript compilation errors
2022-06-06 15:38:01 -04:00
Jason Bedard
7ce0982a14
test: keep npm servers alive while in debug state
2022-06-02 13:03:23 -07:00
Jason Bedard
22af652083
test: do not depend on runtime resolution of @angular-devkit/core
2022-05-19 18:31:10 -07:00
Jason Bedard
aa30bb156d
test: use random ports for local verdaccio npm servers
2022-05-11 09:12:11 -07:00
Paul Gschwendtner
156f15e47f
build: cleanup references to old master
branch
...
Cleans up all referneces to the old `master` branch.
2022-05-04 09:55:54 -07:00
Charles Lyding
ef23b39dd8
ci: add initial E2E test subset for experimental esbuild builder
...
The basic suite of E2E tests are now run against the newly introduced experimental esbuild-based builder (`browser-esbuild`).
Several tests are currently ignored based on the current feature set of the builder.
2022-04-22 20:45:54 -04:00
Alan Agius
d270258dcd
build: update dependency glob to v8
2022-04-14 16:50:08 +02:00
Charles Lyding
d144caa5f2
test: use yargs-parser in E2E test suite runner
...
The `minimist` package that was previously used is no longer a dependency of the project
and was only working due to package hoisting.
2022-04-13 12:08:44 -07:00
Alan Agius
99bd478b67
test(@angular/cli): improve environment variables clean up during E2E's
2021-07-21 14:45:07 +02:00
Alan Agius
c1eddbdc98
fix(@angular/cli): handle YARN_
environment variables during ng update
and ng add
...
With this change we handle yarn specific environment variables during `ng update` and `ng add`. This is a follow up of #21297
2021-07-21 14:45:07 +02:00
Alan Agius
5d15e5de07
test(@angular/cli): add ng add
and ng update
E2E tests for secure repositories
...
With this change we add E2E tests to validate that `ng add` and `ng update` work with secure NPM registries.
This is a follow up of #21140 which addressed several issues with secure registries.
2021-06-18 11:18:25 +01:00
Charles Lyding
b3d7080147
build: enable esModuleInterop
TypeScript option
...
The `esModuleInterop` option is recommended to be enable by TypeScript and corrects several assumptions TypeScript would otherwise make when importing CommonJS files.
This option change helps ensure compatibility as packages move towards ESM.
Reference: https://www.typescriptlang.org/tsconfig#esModuleInterop
2021-06-13 11:45:55 -04:00
Alan Agius
5cf9a08dc7
refactor(@angular-devkit/build-angular): remove deprecated i18n options from server and browser builder
...
BREAKING CHANGE:
Removal of deprecated browser and server command options.
- `i18nFile`, use `locales` object in the project metadata instead.
- `i18nFormat`, No longer needed as the format will be determined automatically.
- `i18nLocale`, use `localize` option instead.
2021-04-03 14:45:58 +02:00
Alan Agius
1fcc120b16
test(@angular/cli): remove E2E tests which are not used
2021-03-31 12:21:47 -06:00
Alan Agius
fd2dbb37ca
test(@angular-devkit/build-angular): clean up tests from ViewEngine code
2021-03-31 10:04:23 -06:00
Charles Lyding
32a0173346
test(@angular/cli): centralize E2E test registry configuration
...
E2E test registry configuration to ensure that package managers use the test registry during tests is now moved out of the tests and into the setup phase.
2021-02-26 11:15:47 -05:00
Charles Lyding
33ad5e87aa
test(@angular/cli): support running E2E tests with yarn
...
With this change, the E2E test suite can be run using yarn as the package manager instead of npm by using the `--yarn` command line option.
2020-10-15 14:36:37 +02:00
Alan Agius
622d08447d
refactor: use ansi-colors instead of removed terminal utils
2020-09-10 20:19:33 +02:00
Charles
862b28f844
fix(@angular-devkit/build-angular): allow localization with development server ( #16053 )
...
* fix(@angular-devkit/build-angular): allow localization with development server
* test: ensure i18n application E2E tests are executed
2019-11-08 07:56:05 -08:00
Alan Agius
936a9512ae
refactor(@angular-devkit/build-angular): move around i18n methods to make them re-usable
2019-10-25 09:52:56 -07:00
Alan Agius
4d2ef2bf57
feat(@angular-devkit/build-angular): add support for i18n extraction with Ivy ( #15796 )
...
Re-enable i18n extraction in Ivy by using the legacy VE compiler.
2019-10-09 11:04:48 -07:00
Alan
fb0a6af9f0
fix(@angular-devkit/build-angular): make app-shell work with Ivy
...
Fixes #15383
2019-09-10 10:01:50 -07:00
Filipe Silva
6a29ce47a1
test: add issue for broken app-shell test
2019-08-30 22:53:46 +05:30
Filipe Silva
91d7a6e45f
test: move dynamic import exclusion to test
2019-08-30 22:53:46 +05:30
Filipe Silva
2383641b95
test: fix basic aot e2e to run with Ivy
2019-08-30 22:53:46 +05:30
Filipe Silva
60f9b19ecd
test: use Ivy by default, opt-in to VE
2019-08-28 22:54:52 +05:30
Alan Agius
a219d495b8
test: enable app-shell e2e test
2019-08-21 10:35:37 -07:00
Charles Lyding
9b2a38cab4
test: introduce local package repository based E2E testing
2019-07-02 10:02:44 -07:00
Charles Lyding
41abb9d557
test: minor E2E runner cleanup
2019-07-02 10:02:44 -07:00
Alan Agius
a1402d9f10
fix(@ngtools/webpack): NGCC workspace libraries module resolution
...
Fixes #14594
2019-06-20 10:57:48 -07:00
Filipe Silva
819892a359
ci: remove appveyor and buildkite
2019-06-06 16:02:17 -07:00
Filipe Silva
27a84a8287
ci: add ivy track for all prs
2019-03-29 14:39:48 -07:00
Alex Eagle
b344ba4b38
test: pin Angular snapshot versions
...
Next step is to set up Renovate to send PRs against this package.json file
2019-03-14 07:15:31 -07:00
Filipe Silva
e96afb874d
test: ignore platform-server tests for ivy
2019-03-07 16:03:10 -08:00