Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update e2e test readme #197

Merged
merged 2 commits into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 39 additions & 1 deletion tests/end-to-end/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# End-to-end tests

## Preparation
## Setting up the environment variables

Duplicate `local.properties.example` file from `test/resources` and rename the copy to `local.properties`

Expand All @@ -15,3 +15,41 @@ Setup properties:
| ANONCRED_DEFINITION_GUID | Existing Anoncred definition guid |
| APIKEY | APIKEY header token authentication |

## Running the end-to-end tests

### Building the SDK

In the command line navigate to the SDK directory

1. Set the `GITHUB_ACTOR` environment variable with your GitHub email
2. Set `GITHUB_TOKEN` environment variable with your GitHub token
3. Change the version in `gradle.properties` to something else
4. Run the following command

```bash
./gradlew publishToMavenLocal
```

### Update the SDK dependency in e2e test

Now, in the `build.gradle.kts` file inside the `e2e tests` directory you'll have to update
the version of the sdk with the new one you published to your maven local

E.g.
```kotlin
testImplementation("org.hyperledger.identus:edge-agent-sdk:1.2.3-MY-CHANGE")
```

### Running the tests

Full regression

```bash
./gradlew test --tests "org.hyperledger.identus.walletsdk.TestSuite"
```

Tagged scenario

```bash
./gradlew test --tests "org.hyperledger.identus.walletsdk.TestSuite" -Dcucumber.filter.tags="@mytag and @anothertag"
```
Loading