angular-cn/packages/compiler-cli/test/compliance/test_helpers
JoostK 6db342a87a test(compiler-cli): reset i18n message index in compliance test macro (#40529)
The compliance test runner has various macros that process the
expectation files before actually checking their contents. Among those
macros are i18n helpers, which uses a global message counter to be able
to uniquely identify ICU variables.

Because of the global nature of this message index, it was susceptible
to ordering issues which could result in flaky tests, although it failed
very infrequently.

This commit resets the global message counter before applying the macros.
As a result of this change an expectation file had to be updated; this
is actually a bug fix as said test used to fail if run in isolation (if
`focusTest: true` was set for that particular testcase).

PR Close #40529
2021-01-25 10:55:42 -08:00
..
BUILD.bazel test(compiler-cli): add support for source-map checks in compliance tests (#39939) 2020-12-07 16:21:05 -08:00
check_errors.ts test(compiler-cli): log unexpected compilation errors in compliance test runner (#39862) 2020-12-02 14:56:38 -08:00
check_expectations.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
compile_test.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
di_checks.ts test(compiler-cli): convert di compliance tests (#39863) 2020-11-30 11:21:23 -08:00
expect_emit.ts test(compiler-cli): migrate i18n compliance tests (#39661) 2020-11-25 11:08:39 -08:00
expected_file_macros.ts test(compiler-cli): reset i18n message index in compliance test macro (#40529) 2021-01-25 10:55:42 -08:00
function_checks.ts test(compiler-cli): migrate template compliance tests (#39871) 2020-12-01 14:58:11 -08:00
get_compliance_tests.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
golden_partials.ts test(compiler-cli): ensure that golden partial files are parsed accurately (#39939) 2020-12-07 16:21:02 -08:00
i18n_checks.ts test(compiler-cli): migrate i18n compliance tests (#39661) 2020-11-25 11:08:39 -08:00
i18n_helpers.ts test(compiler-cli): reset i18n message index in compliance test macro (#40529) 2021-01-25 10:55:42 -08:00
sourcemap_helpers.ts refactor(compiler-cli): update to use new file-system interfaces (#40281) 2021-01-08 09:34:44 -08:00
test_runner.ts test(compiler-cli): fix up import paths in test code (#40237) 2021-01-07 13:12:53 -08:00