From d589114a47d5e062470ea3aff94dc76c67040340 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Tue, 15 Jan 2019 16:19:07 -0800 Subject: [PATCH] chore(ivy): filter unit tests based on a blacklist --- test/karma-test-shim.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/karma-test-shim.js b/test/karma-test-shim.js index f2406abd5d2b..ad81254d06e9 100644 --- a/test/karma-test-shim.js +++ b/test/karma-test-shim.js @@ -95,3 +95,15 @@ function patchTestBedToDestroyFixturesAfterEveryTest(testBed) { testBed.resetTestingModule(); }); } + + +// Filter out any tests explicitly given in the blacklist. +// On the angular/material2 repo, this blacklist is always empty. +// When these tests are run on angular/angular, the blacklist will be replaced +// with all of the known failures when running the component tests with ivy. +var testBlacklist = null; +jasmine.getEnv().configure({ + specFilter: function(spec) { + return !testBlacklist || !testBlacklist[spec.getFullName()]; + } +});