forked from kubeflow/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from tarilabs/tarilabs-20240806-sync
periodic sync upstream KF to midstream ODH
- Loading branch information
Showing
31 changed files
with
12,427 additions
and
6,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "model-registry" | ||
version = "0.2.4a1" | ||
version = "0.2.5a1" | ||
description = "Client for Kubeflow Model Registry" | ||
authors = ["Isabella Basso do Amaral <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Test against prod build hosted by lightweight http server | ||
BASE_URL=http://localhost:9001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
# Model Registry UI Testing | ||
|
||
[TBD] | ||
## Cypress Tests | ||
|
||
Cypress is used to run tests against the frontend while mocking all network requests. | ||
|
||
Single command to run all Cypress tests or a specific test (build frontend, start HTTP server, run Cypress): | ||
|
||
```bash | ||
npm run test:cypress-ci | ||
|
||
npm run test:cypress-ci -- --spec "**/testfile.cy.ts" | ||
``` | ||
|
||
Cypress tests require a frontend server to be running. | ||
|
||
To best match production, build the frontend and use a lightweight HTTP server to host the files. This method will require manual rebuilds when changes are made to the dashboard frontend code. | ||
|
||
```bash | ||
npm run cypress:server:build | ||
npm run cypress:server | ||
``` | ||
|
||
To run all Cypress tests or a specific test headless | ||
|
||
```bash | ||
npm run cypress:run:mock | ||
|
||
npm run cypress:run:mock -- --spec "**/testfile.cy.ts" | ||
``` | ||
|
||
To open the Cypress GUI run | ||
|
||
```bash | ||
npm run cypress:open:mock | ||
``` |
Oops, something went wrong.