From bbb3f8fa60d5937f3a914a1a9fb498d9a5e970b2 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Fri, 10 Aug 2018 12:49:21 -0700 Subject: [PATCH] docs(ivy): add better documentation around debugging ivy tests (#25432) PR Close #25432 --- docs/BAZEL.md | 22 +++++++++++++++++++++- packages/core/src/ivy_switch.ts | 23 ++--------------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/docs/BAZEL.md b/docs/BAZEL.md index 4e129f28cb..b10552f6fa 100644 --- a/docs/BAZEL.md +++ b/docs/BAZEL.md @@ -68,7 +68,26 @@ new as of May 2017 and not very stable yet. You can use [ibazel] to get a "watch mode" that continuously keeps the outputs up-to-date as you save sources. +### Various Flags Used For Tests + +If you're experiencing problems with seemingly unrelated tests failing, it may be because you're not using the proper flags with your Bazel test runs in Angular. + +See also: [`//tools/bazel.rc`](https://github.com/angular/angular/blob/master/tools/bazel.rc) where `--define=ivy=false` is defined as default. + +- `--config=debug`: build and launch in debug mode (see [debugging](#debugging) instructions below) +- `--define=compile=