Skip to content

Commit

Permalink
chore: update e2e test readme
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
  • Loading branch information
amagyar-iohk committed Sep 13, 2024
1 parent 48d06be commit 46b4ab6
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 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,42 @@ 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 `ATALA_GITHUB_ACTOR` environment variable with your GitHub email
2. Set `ATALA_GITHUB_TOKEN` environment variable with your GitHub token
3. Comment out the `signing` part of the `build.gradle.kts`
4. Change the version in `gradle.properties` to something else
5. 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"
```

0 comments on commit 46b4ab6

Please sign in to comment.