angular-docs-cn/tools/broccoli
Julie Ralph b0cebdba6b feat(test): allow tests to specify the platform and application providers used
With providers split into bundles, the test injector is now able to
use providers for a given bundle. Suggested provider lists for tests are
available in `angular2/platform/testing/<platform>`.

Change the providers for a test suite using `setBaseTestProviders`. This
should be done once at the start of the test suite, before any test cases
run.

BREAKING CHANGE: Tests are now required to use `setBaseTestProviders`
to set up. Assuming your tests are run on a browser, setup would change
as follows.

Before:

```js
// Somewhere in test setup
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
BrowserDomAdapter.makeCurrent
```

After:

```js
// Somewhere in the test setup
import {setBaseTestProviders} from 'angular2/testing';
import {
  TEST_BROWSER_PLATFORM_PROVIDERS,
  TEST_BROWSER_APPLICATION_PROVIDERS
} from 'angular2/platform/testing/browser';

setBaseTestProviders(TEST_BROWSER_PLATFORM_PROVIDERS,
                     TEST_BROWSER_APPLICATION_PROVIDERS);
```

Closes #5351, Closes #5585

Closes #5975
2016-01-13 02:11:06 +00:00
..
html-replace chore(build): allow to run examples and benchmarks without bundles 2016-01-05 08:27:24 -08:00
js-replace feat(core): enable dev mode by default 2015-12-15 08:34:44 -08:00
trees feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
angular_builder.d.ts feat(broccoli): add incremental dartfmt plugin 2015-05-29 18:55:37 -04:00
angular_builder.ts chore(build): allow to run examples and benchmarks without bundles 2016-01-05 08:27:24 -08:00
broccoli-check-imports.ts chore: enforce import checks for the 'upgrade' barrel 2015-12-09 21:04:41 +00:00
broccoli-dartfmt.ts fix(dartfmt): don't break win32 command line limit 2015-06-10 14:43:33 -04:00
broccoli-dest-copy.ts revert: "build: speed up karma run by passing in list of dist files that changed" 2015-06-30 14:44:44 -07:00
broccoli-filter.d.ts feat(build): Move HTML copying into the broccoli task. 2015-04-14 11:54:31 -07:00
broccoli-flatten.spec.ts test(tools): temporarily disable tests that depend on mock-fs 2015-10-03 21:33:57 +00:00
broccoli-flatten.ts build(broccoli): add support for DiffResult#addedPaths 2015-06-10 11:11:28 -07:00
broccoli-lodash.ts chore: adjust formatting to new clang-format. 2015-10-28 11:19:10 +01:00
broccoli-merge-trees.spec.ts test(tools): temporarily disable tests that depend on mock-fs 2015-10-03 21:33:57 +00:00
broccoli-merge-trees.ts feat(render): don’t use the reflector for setting properties 2015-06-22 18:35:16 -07:00
broccoli-replace.ts feat(build): Allow building in windows without admin priviledges 2015-07-08 16:10:23 -07:00
broccoli-tree-stabilizer.ts build(broccoli): add tree-stabilizer plugin to deal with unstable trees 2015-05-28 11:44:36 -07:00
broccoli-ts2dart.ts chore: fix incremental test.unit.dart 2015-11-02 20:46:27 +00:00
broccoli-typescript.ts build(broccoli-typescript): check for map files before deleting them 2015-12-23 02:59:11 +00:00
broccoli-writer.d.ts chore(typescript): fixes dart failures and linter 2015-09-25 20:15:55 +00:00
broccoli.d.ts fix(diffing-broccoli-plugin): wrapped trees are always stable 2015-06-08 23:35:32 -07:00
diffing-broccoli-plugin.ts build(DiffingPluginWrapper): ignore null/undefined input trees 2015-11-13 22:50:38 +00:00
multi_copy.ts chore(typescript 1.6 upgrade): fix build.tools 2015-09-25 20:15:55 +00:00
tree-differ.spec.ts test(tools): temporarily disable tests that depend on mock-fs 2015-10-03 21:33:57 +00:00
tree-differ.ts chore: Make enum names consistent with TypeScript convention 2015-08-27 22:32:21 -07:00