* Update gitignore * Move csproj * Update project references * Update solutions * Update build scripts * Tests used to share editorconfig with projects in src * Fix broken tests. * Stop copying around .editorconfig merged root one with linting * csharp_style_expression_bodied -> suggestion * Move StyleCop rulesets to matching directories and update shared build properties * Remove legacy build files, update NuGet.cofig and solution files * Restore myget source * Clean up .gitignore * Update .gitignore * Move new test classes to tests after merge * Gitignore + nuget config * Move new test Co-authored-by: Ronald Barendse <ronald@barend.se>
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# Umbraco Acceptance Tests
|
|
|
|
### Prerequisites
|
|
- NodeJS 12+
|
|
- A running installed Umbraco on url: [https://localhost:44331](https://localhost:44331) (Default development port)
|
|
- Install using a `SqlServer`/`LocalDb` as the tests execute too fast for `SqlCE` to handle.
|
|
|
|
### Getting started
|
|
The tests are located in the project/folder as `Umbraco.Tests.AcceptanceTests`. Make sure you run `npm install` in that folder, or let your IDE do that.
|
|
|
|
The script will ask you to enter the username and password for a superadmin user of your Umbraco CMS.
|
|
|
|
### Executing tests
|
|
There are two npm scripts that can be used to execute the test:
|
|
|
|
1. `npm run test`
|
|
- Executes the tests headless.
|
|
1. `npm run ui`
|
|
- Executes the tests in a browser handled by a cypress application.
|
|
|
|
In case of errors it is recommended to use the UI to debug.
|
|
|
|
### Enviroment Configuration
|
|
|
|
The enviroment configuration is begin setup by the npm installation script.
|
|
This results in the creation of this file: `cypress.env.json`.
|
|
This file is already added to `.gitignore` and can contain values that are different for each developer machine.
|
|
|
|
The file has the following content:
|
|
```
|
|
{
|
|
"username": "<email for superadmin>",
|
|
"password": "<password for superadmin>"
|
|
}
|
|
```
|
|
You can change this if you like or run the config script to reset the values, type "npm run config" in your terminal.
|