Skip to content

Commit

Permalink
test: fix missing api endpoint and key in the e2e test (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
cre8ivejp authored Jun 23, 2023
1 parent 4dc6d5b commit 4d93a55
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build for testing
env:
E2E_API_ENDPOINT: ${{ secrets.E2E_API_ENDPOINT }}
E2E_API_KEY: ${{ secrets.E2E_API_KEY }}
run: make build-for-testing

- name: Unit Test
run: make test-without-building

- name: E2E Test
env:
E2E_API_ENDPOINT: ${{ secrets.E2E_API_ENDPOINT }}
E2E_API_KEY: ${{ secrets.E2E_API_KEY }}
run: make e2e-without-building
13 changes: 11 additions & 2 deletions Bucketeer.xcodeproj/xcshareddata/xcschemes/Bucketeer.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,24 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "NO">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0065C3C428C7BB76002D92A2"
BuildableName = "BucketeerTests.xctest"
BlueprintName = "BucketeerTests"
ReferencedContainer = "container:Bucketeer.xcodeproj">
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "E2E_API_ENDPOINT"
value = "stub"
value = "$(E2E_API_ENDPOINT)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "E2E_API_KEY"
value = "stub"
value = "$(E2E_API_KEY)"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ BUILD=$(XCODEBUILD) $(OPTIONS) $(DESTINATION) \
build
BUILD_FOR_TESTING=$(XCODEBUILD) $(OPTIONS) $(DESTINATION) \
-configuration Test \
build-for-testing E2E_API_ENDPOINT=$(E2E_API_ENDPOINT) E2E_API_KEY=$(E2E_API_KEY)
build-for-testing
TEST_WITHOUT_BUILDING=$(XCODEBUILD) $(OPTIONS) $(DESTINATION) \
-configuration Test \
-skip-testing:BucketeerTests/BucketeerE2ETests \
test-without-building
E2E_WITHOUT_BUILDING=$(XCODEBUILD) $(OPTIONS) $(DESTINATION) \
-configuration Test \
-only-testing:BucketeerTests/BucketeerE2ETests \
test-without-building
test-without-building E2E_API_ENDPOINT=$(E2E_API_ENDPOINT) E2E_API_KEY=$(E2E_API_KEY)
ALL_TEST_WITHOUT_BUILDING=$(XCODEBUILD) $(OPTIONS) $(DESTINATION) \
-configuration Test \
test-without-building
Expand Down

0 comments on commit 4d93a55

Please sign in to comment.