Paul Gschwendtner fa4ea34401 ci: rename material-unit-tests job to components-repo-unit-tests (#34898)
We rename the `material-unit-tests` job to `components-repo-unit-tests`
because the job runs all unit tests found in the Angular Components repository.
This includes the Angular CDK, Angular Material and more. Also the repository has
been renamed from `angular/material2` to `angular/components` in the past.

PR Close #34898
2020-01-23 13:29:02 -08:00

1.3 KiB

Unit tests for angular/components

Currently, all changes to Ivy are validated against the test suite of the angular/components repository. Known failing tests are skipped based on the blocklist in tools/components-repo-ci/test-blocklist.ts.

Whenever the root cause of a known failure is identified, the notes field for the corresponding tests should be updated. Whenever a failure is resolved, the corresponding tests should be removed from the blocklist.

Debugging

Information on debugging can be found here.

Excluding new tests

In case there are any tests in the components test suite that fail due to recent changes in the framework and you want to exclude the tests temporarily, a new entry can be added to the test-blocklist.ts file.

Each property in the blocklist object corresponds to a test in the components repository. The name of the property must match the exact test name. Additionally it's recommended that every entry has a field with a note on why the test is disabled.

export const testBlocklist: any = {
  'MatSlider should be able to drag thumb': {
    error: 'Cannot register event "dragstart".',
    notes: 'Breaking change where HammerJS module needs to be imported.'
  }
}