docs: remove End-to-end test files structure (#42844)

Since version 12, the Angular CLI no longer generates end-to-end tests.

PR Close #42844
This commit is contained in:
Alan Agius 2021-07-14 18:20:54 +02:00 committed by Andrew Kushnir
parent 64bb7cd704
commit 48c1c81780
2 changed files with 2 additions and 19 deletions

View File

@ -111,20 +111,6 @@ Project-specific [TypeScript](https://www.typescriptlang.org/) configuration fil
| `tsconfig.spec.json` | [TypeScript](https://www.typescriptlang.org/) configuration for the application tests. See [TypeScript Configuration](guide/typescript-configuration). | | `tsconfig.spec.json` | [TypeScript](https://www.typescriptlang.org/) configuration for the application tests. See [TypeScript Configuration](guide/typescript-configuration). |
| `tslint.json` | Application-specific [TSLint](https://palantir.github.io/tslint/) configuration. | | `tslint.json` | Application-specific [TSLint](https://palantir.github.io/tslint/) configuration. |
### End-to-end test files
An `e2e/` folder at the top level contains source files for a set of end-to-end tests that correspond to the root-level application, along with test-specific configuration files.
For a multi-project workspace, application-specific end-to-end tests are in the project root, under `projects/project-name/e2e/`.
<code-example language="none">
e2e/
src/ (end-to-end tests for my-app)
app.e2e-spec.ts
app.po.ts
protractor.conf.js (test-tool config)
tsconfig.json (TypeScript config inherits from workspace)
</code-example>
{@a multiple-projects} {@a multiple-projects}
@ -160,9 +146,6 @@ my-workspace/
projects/ (generated applications and libraries) projects/ (generated applications and libraries)
my-first-app/ --(an explicitly generated application) my-first-app/ --(an explicitly generated application)
... --(application-specific config) ... --(application-specific config)
e2e/ ----(corresponding e2e tests)
src/ ----(e2e tests source)
... ----(e2e-specific config)
src/ --(source and support files for application) src/ --(source and support files for application)
my-lib/ --(a generated library) my-lib/ --(a generated library)
... --(library-specific config) ... --(library-specific config)
@ -173,7 +156,7 @@ my-workspace/
When you generate a library using the CLI (with a command such as `ng generate library my-lib`), the generated files go into the `projects/` folder of the workspace. For more information about creating your own libraries, see [Creating Libraries](guide/creating-libraries). When you generate a library using the CLI (with a command such as `ng generate library my-lib`), the generated files go into the `projects/` folder of the workspace. For more information about creating your own libraries, see [Creating Libraries](guide/creating-libraries).
Libraries (unlike applications and their associated e2e projects) have their own `package.json` configuration file. Libraries unlike applications have their own `package.json` configuration file.
Under the `projects/` folder, the `my-lib` folder contains your library code. Under the `projects/` folder, the `my-lib` folder contains your library code.

View File

@ -22,7 +22,7 @@ To set up your development environment, follow the instructions in [Local Enviro
## Create a new workspace and an initial application ## Create a new workspace and an initial application
You develop applications in the context of an Angular [workspace](guide/glossary#workspace). A workspace contains the files for one or more [projects](guide/glossary#project). A project is the set of files that comprise an app, a library, or end-to-end (e2e) tests. For this tutorial, you will create a new workspace. You develop applications in the context of an Angular [workspace](guide/glossary#workspace). A workspace contains the files for one or more [projects](guide/glossary#project). A project is the set of files that comprise an application or a library. For this tutorial, you will create a new workspace.
To create a new workspace and an initial application project: To create a new workspace and an initial application project: