Skip to content

Commit

Permalink
update test fixtures to use test management
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mohedano committed Feb 4, 2025
1 parent 97d9ca1 commit 8d43f9d
Show file tree
Hide file tree
Showing 46 changed files with 62 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runFeatures(features, true)
Expand All @@ -105,7 +105,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -126,7 +126,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class MUnitTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runTests(tests, true)
Expand All @@ -93,7 +93,7 @@ class MUnitTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -110,7 +110,7 @@ class MUnitTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "munit",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "munit",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "munit",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "munit",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class JUnit4Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runTests(tests, true)
Expand All @@ -141,7 +141,7 @@ class JUnit4Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -158,7 +158,7 @@ class JUnit4Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit4",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "junit4",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "junit4",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit4",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit4",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runFeatures(features, false, true)
Expand All @@ -115,7 +115,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -136,7 +136,7 @@ class CucumberTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"test.framework" : "cucumber",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datadog.trace.api.DisableTestTrace
import datadog.trace.api.civisibility.CIConstants
import datadog.trace.api.civisibility.config.TestIdentifier
import datadog.trace.civisibility.CiVisibilityInstrumentationTest
import datadog.trace.civisibility.diff.FileDiff
Expand Down Expand Up @@ -133,7 +132,7 @@ class SpockTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runTests(tests, true)
Expand All @@ -147,7 +146,7 @@ class SpockTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -164,7 +163,7 @@ class SpockTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@
"test.framework" : "spock",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"test.framework" : "spock",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"test.framework" : "spock",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
"test.framework" : "spock",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"test.framework" : "spock",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class JUnit5Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runTests(tests, true)
Expand All @@ -179,7 +179,7 @@ class JUnit5Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined auto-retries #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenFlakyRetryEnabled(true)
Expand All @@ -196,7 +196,7 @@ class JUnit5Test extends CiVisibilityInstrumentationTest {
}

def "test quarantined early flakiness detection #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

givenEarlyFlakinessDetectionEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit5",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "junit5",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"test.framework" : "junit5",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit5",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test.framework" : "junit5",
"test.framework_version" : ${content_meta_test_framework_version},
"test.status" : "fail",
"test.test_management.enabled" : "true",
"test.type" : "test",
"test_session.name" : "session-name"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class KarateTest extends CiVisibilityInstrumentationTest {
}

def "test quarantined #testcaseName"() {
givenQuarantineEnabled(true)
givenTestManagementEnabled(true)
givenQuarantinedTests(quarantined)

runTests(tests, true)
Expand Down
Loading

0 comments on commit 8d43f9d

Please sign in to comment.