From 1fe1dd1f198b0db7e1eebb2d7387009f74902628 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 27 May 2021 18:12:04 -0700 Subject: [PATCH] docs: clarify the wording around live examples for all testing guides (#42406) We should primarily point readers to the stackblitz that contains the spec files and runs them. The application stackblitz is secondary (and doesn't actually contain the spec files, which is confusing). Fixes #38535 PR Close #42406 --- aio/content/examples/testing/stackblitz.json | 4 +--- aio/content/guide/test-debugging.md | 9 --------- aio/content/guide/testing-attribute-directives.md | 4 ++-- aio/content/guide/testing-code-coverage.md | 4 ++-- aio/content/guide/testing-components-basics.md | 4 ++-- aio/content/guide/testing-components-scenarios.md | 4 ++-- aio/content/guide/testing-pipes.md | 4 ++-- aio/content/guide/testing-services.md | 4 ++-- aio/content/guide/testing.md | 4 ++-- 9 files changed, 15 insertions(+), 26 deletions(-) diff --git a/aio/content/examples/testing/stackblitz.json b/aio/content/examples/testing/stackblitz.json index 3264b6dd99..c95a8adb09 100644 --- a/aio/content/examples/testing/stackblitz.json +++ b/aio/content/examples/testing/stackblitz.json @@ -10,9 +10,7 @@ "src/app/**/*.css", "src/app/**/*.html", - "src/app/**/*.ts", - - "!src/**/*.spec.ts" + "src/app/**/*.ts" ], "tags": ["testing"], "devDependencies": ["jasmine-core", "jasmine-marbles"] diff --git a/aio/content/guide/test-debugging.md b/aio/content/guide/test-debugging.md index c2abe113bf..9795e6f030 100644 --- a/aio/content/guide/test-debugging.md +++ b/aio/content/guide/test-debugging.md @@ -2,15 +2,6 @@ If your tests aren't working as you expect them to, you can inspect and debug them in the browser. -
- - For the sample application that the testing guides describe, see the sample app. - - For the tests features in the testing guides, see tests. - -
- - Debug specs in the browser in the same way that you debug an application. 1. Reveal the Karma browser window. See [Set up testing](guide/testing#set-up-testing) if you need help with this step. diff --git a/aio/content/guide/testing-attribute-directives.md b/aio/content/guide/testing-attribute-directives.md index 13bdc8ce8e..35b0b48683 100644 --- a/aio/content/guide/testing-attribute-directives.md +++ b/aio/content/guide/testing-attribute-directives.md @@ -8,9 +8,9 @@ Its name reflects the way the directive is applied: as an attribute on a host el
- For the sample app that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing-code-coverage.md b/aio/content/guide/testing-code-coverage.md index ed8aa3a582..29dd28bb36 100644 --- a/aio/content/guide/testing-code-coverage.md +++ b/aio/content/guide/testing-code-coverage.md @@ -7,9 +7,9 @@ Code coverage reports show you any parts of your code base that may not be prope
-For the sample app that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. -For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing-components-basics.md b/aio/content/guide/testing-components-basics.md index 72a551ddd0..1673d61329 100644 --- a/aio/content/guide/testing-components-basics.md +++ b/aio/content/guide/testing-components-basics.md @@ -15,9 +15,9 @@ can validate much of the component's behavior in an easier, more obvious way.
- For the sample application that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing-components-scenarios.md b/aio/content/guide/testing-components-scenarios.md index 97d0a666fe..3972faca07 100644 --- a/aio/content/guide/testing-components-scenarios.md +++ b/aio/content/guide/testing-components-scenarios.md @@ -4,9 +4,9 @@ This guide explores common component testing use cases.
- For the sample application that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing-pipes.md b/aio/content/guide/testing-pipes.md index b2d4e1d3fa..5cb734e2e0 100644 --- a/aio/content/guide/testing-pipes.md +++ b/aio/content/guide/testing-pipes.md @@ -4,9 +4,9 @@ You can test [pipes](guide/pipes) without the Angular testing utilities.
- For the sample application that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing-services.md b/aio/content/guide/testing-services.md index 6d887d532c..78cb8f3f66 100644 --- a/aio/content/guide/testing-services.md +++ b/aio/content/guide/testing-services.md @@ -5,9 +5,9 @@ To check that your services are working as you intend, you can write tests speci
- For the sample application that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.
diff --git a/aio/content/guide/testing.md b/aio/content/guide/testing.md index 1ceb1e3940..94a498241a 100644 --- a/aio/content/guide/testing.md +++ b/aio/content/guide/testing.md @@ -21,9 +21,9 @@ This sample application is much like the one in the [_Tour of Heroes_ tutorial](
- For the sample application that the testing guides describe, see the sample app. + For a hands-on experience you can run tests and explore the test code in your browser as your read this guide. - For the tests features in the testing guides, see tests. + If you'd like to experiment with the application that this guide describes, you can run it in your browser or download and run it locally.