mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-30 20:56:03 +00:00
35 lines
828 B
Markdown
35 lines
828 B
Markdown
|
|
# Quick Run Tests with UI
|
||
|
|
|
||
|
|
1. Run quickstart
|
||
|
|
`./gradlew quickstartDebug`
|
||
|
|
|
||
|
|
2. Load Cypress fixture data and run Cypress UI
|
||
|
|
`./gradlew cypressDev`
|
||
|
|
|
||
|
|
## Run Tests Against Remote Instance
|
||
|
|
|
||
|
|
Warning: this does not load any data.
|
||
|
|
For now, either load data onto the remote instance manually, or only run tests that do not require preset data.
|
||
|
|
|
||
|
|
`./gradlew :smoke-test:cypressRemote -PbaseUrl=<url> -Pusername=<username> -Ppassword=<password>`
|
||
|
|
|
||
|
|
### Run Tests Against Remote Instance with Local Frontend
|
||
|
|
|
||
|
|
1. Build frontend
|
||
|
|
|
||
|
|
```
|
||
|
|
./gradlew :datahub-web-react:yarnBuild
|
||
|
|
```
|
||
|
|
|
||
|
|
2. Start frontend preview against remote instance
|
||
|
|
|
||
|
|
```
|
||
|
|
./gradlew :datahub-web-react:yarnPreview -Pproxy="<remote-instance-url>"
|
||
|
|
```
|
||
|
|
|
||
|
|
3. Start cypress against localhost:4173
|
||
|
|
|
||
|
|
```
|
||
|
|
./gradlew :smoke-test:cypressRemote -Pusername=<username> -Ppassword=<password>
|
||
|
|
```
|