Skip to content

Commit

Permalink
Merge pull request #720 from DataDog/nachoBonafonte/update-to-testing…
Browse files Browse the repository at this point in the history
…-sdk-1.1.0

Update to version 1.1.0 of testing framework
Update test targets so they keep the previous behaviour (Stdout and Stderr capturing must be explicitly activated now)
  • Loading branch information
Ignacio Bonafonte authored Jan 17, 2022
2 parents f15a4cf + c90c2b1 commit 744191c
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Datadog/Datadog.xcodeproj/xcshareddata/xcschemes/Datadog.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@
value = "$(BITRISE_BUILD_URL)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDOUT_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDERR_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<CodeCoverageTargets>
<BuildableReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@
value = "$(BITRISE_BUILD_URL)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDOUT_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDERR_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<Testables>
<TestableReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@
value = "$(GIT_CLONE_COMMIT_COMMITER_EMAIL)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDOUT_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDERR_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<CodeCoverageTargets>
<BuildableReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@
value = "$(BITRISE_BUILD_URL)"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDOUT_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "DD_ENABLE_STDERR_INSTRUMENTATION"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
<CodeCoverageTargets>
<BuildableReference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,68 @@
"id" : "D87CA41D-8EBB-4809-AC70-E3B8317FAAC7",
"name" : "TSAN",
"options" : {
"environmentVariableEntries" : [
{
"key" : "DD_TEST_RUNNER",
"value" : "$(DD_TEST_RUNNER)"
},
{
"key" : "DATADOG_CLIENT_TOKEN",
"value" : "$(DD_SDK_SWIFT_TESTING_CLIENT_TOKEN)"
},
{
"key" : "DD_ENV",
"value" : "$(DD_SDK_SWIFT_TESTING_ENV)"
},
{
"key" : "DD_SERVICE",
"value" : "$(DD_SDK_SWIFT_TESTING_SERVICE)"
},
{
"key" : "DD_DISABLE_SDKIOS_INTEGRATION",
"value" : "1"
},
{
"key" : "DD_DISABLE_HEADERS_INJECTION",
"value" : "1"
},
{
"key" : "DD_ENABLE_RECORD_PAYLOAD",
"value" : "1"
},
{
"key" : "SRCROOT",
"value" : "$(SRCROOT)"
},
{
"key" : "BITRISE_SOURCE_DIR",
"value" : "$(BITRISE_SOURCE_DIR)"
},
{
"key" : "BITRISE_TRIGGERED_WORKFLOW_ID",
"value" : "$(BITRISE_TRIGGERED_WORKFLOW_ID)"
},
{
"key" : "BITRISE_BUILD_SLUG",
"value" : "$(BITRISE_BUILD_SLUG)"
},
{
"key" : "BITRISE_BUILD_NUMBER",
"value" : "$(BITRISE_BUILD_NUMBER)"
},
{
"key" : "BITRISE_BUILD_URL",
"value" : "$(BITRISE_BUILD_URL)"
},
{
"key" : "DD_ENABLE_STDOUT_INSTRUMENTATION",
"value" : "1"
},
{
"key" : "DD_ENABLE_STDERR_INSTRUMENTATION",
"value" : "1"
}
],
"threadSanitizerEnabled" : true
}
}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: dependencies xcodeproj-httpservermock templates

# The release version of `dd-sdk-swift-testing` to use for tests instrumentation.
DD_SDK_SWIFT_TESTING_VERSION = 1.0.3-beta.1
DD_SDK_SWIFT_TESTING_VERSION = 1.1.0

define DD_SDK_TESTING_XCCONFIG_CI
FRAMEWORK_SEARCH_PATHS=$$(inherited) $$(SRCROOT)/../instrumented-tests/DatadogSDKTesting.xcframework/ios-arm64_x86_64-simulator/\n
Expand Down

0 comments on commit 744191c

Please sign in to comment.