diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index df5df96b1..e0fe0dd94 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -38,8 +38,8 @@ jobs: restore-keys: | ${{ runner.os }}-maven- - - name: Build with Maven - run: mvn --batch-mode --update-snapshots verify -P integration-test + - name: Verify with Maven + run: mvn --batch-mode --update-snapshots verify -P e2e-test - name: Upload coverage to Codecov uses: codecov/codecov-action@5bf250470ea3e4bf9456e73127015eb78ce4c280 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f18fa1af8..b7ffa9a7f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,16 +16,16 @@ If you think we might be out of date with the spec, you can check that by invoki If you're adding tests to cover something in the spec, use the `@Specification` annotation like you see throughout the test suites. -## Integration tests +## End-to-End Tests -The continuous integration runs a set of [gherkin integration tests](https://github.com/open-feature/test-harness/blob/main/features/evaluation.feature) using [`flagd`](https://github.com/open-feature/flagd). These tests do not run with the default maven profile. If you'd like to run them locally, you can start the flagd testbed with +The continuous integration runs a set of [gherkin e2e tests](https://github.com/open-feature/test-harness/blob/main/features/evaluation.feature) using [`flagd`](https://github.com/open-feature/flagd). These tests do not run with the default maven profile. If you'd like to run them locally, you can start the flagd testbed with ``` docker run -p 8013:8013 ghcr.io/open-feature/flagd-testbed:latest ``` and then run ``` -mvn test -P integration-test +mvn test -P e2e-test ``` ## Releasing diff --git a/pom.xml b/pom.xml index 44f97f756..db3608d37 100644 --- a/pom.xml +++ b/pom.xml @@ -11,8 +11,8 @@ 1.8 ${maven.compiler.source} 5.9.3 - - **/integration/*.java + + **/e2e/*.java ${groupId}.${artifactId} @@ -495,10 +495,10 @@ - - integration-test + + e2e-test - + diff --git a/src/test/java/dev/openfeature/sdk/integration/RunCucumberTest.java b/src/test/java/dev/openfeature/sdk/e2e/RunCucumberTest.java similarity index 92% rename from src/test/java/dev/openfeature/sdk/integration/RunCucumberTest.java rename to src/test/java/dev/openfeature/sdk/e2e/RunCucumberTest.java index 6a13ed29c..2c652338d 100644 --- a/src/test/java/dev/openfeature/sdk/integration/RunCucumberTest.java +++ b/src/test/java/dev/openfeature/sdk/e2e/RunCucumberTest.java @@ -1,4 +1,4 @@ -package dev.openfeature.sdk.integration; +package dev.openfeature.sdk.e2e; import org.junit.platform.suite.api.ConfigurationParameter; import org.junit.platform.suite.api.IncludeEngines; diff --git a/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java b/src/test/java/dev/openfeature/sdk/e2e/StepDefinitions.java similarity index 99% rename from src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java rename to src/test/java/dev/openfeature/sdk/e2e/StepDefinitions.java index 41c4dafc2..7048fc0b8 100644 --- a/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java +++ b/src/test/java/dev/openfeature/sdk/e2e/StepDefinitions.java @@ -1,4 +1,4 @@ -package dev.openfeature.sdk.integration; +package dev.openfeature.sdk.e2e; import dev.openfeature.contrib.providers.flagd.FlagdProvider; import dev.openfeature.sdk.Client;