Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@
/// <testcase name="initializationError" classname="com.example.MyTest" />
/// ```
///
/// Usage (Java 25): `java TagInitializationErrors.java junit-report.xml`
/// Usage (Java 25): `java TagSyntheticFailures.java junit-report.xml`

class TagInitializationErrors {
class TagSyntheticFailures {
public static void main(String[] args) throws Exception {
if (args.length == 0) {
System.err.println("Usage: java TagInitializationErrors.java <xml-file>");
System.err.println("Usage: java TagSyntheticFailures.java <xml-file>");
System.exit(1);
}
var xmlFile = new File(args[0]);
Expand Down Expand Up @@ -88,7 +88,7 @@ public static void main(String[] args) throws Exception {
if (!modified) {
return;
}
var tmpFile = File.createTempFile("TagInitializationErrors", ".xml", xmlFile.getParentFile());
var tmpFile = File.createTempFile("TagSyntheticFailures", ".xml", xmlFile.getParentFile());
try {
var transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/collect_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ do
fi

echo "Add dd_tags[test.final_status] property on retried synthetics testcase initializationErrors, and all executionError and test exception synthetic testcases"
$JAVA_25_HOME/bin/java "$(dirname "$0")/TagInitializationErrors.java" "$TARGET_DIR/$AGGREGATED_FILE_NAME"
$JAVA_25_HOME/bin/java "$(dirname "$0")/TagSyntheticFailures.java" "$TARGET_DIR/$AGGREGATED_FILE_NAME"

echo "Add dd_tags[test.final_status] property to each testcase on $TARGET_DIR/$AGGREGATED_FILE_NAME"
xsl_file="$(dirname "$0")/add_final_status.xsl"
Expand Down
Loading