Skip to content

Failure message not escaped #54

@stephanos

Description

@stephanos

I've noticed that my test summary looked like this (link):

Screenshot 2024-10-29 at 7 53 36 PM

It's because the XML looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="620" failures="2" errors="0" time="921.416626">
	<testsuite tests="620" failures="2" time="801.689000" name="go.temporal.io/server/tests" timestamp="2024-10-30T00:37:26Z">
		<properties>
			<property name="go.version" value="go1.23.2 linux/amd64"></property>
		</properties>
		<testcase classname="go.temporal.io/server/tests" name="TestActivityTestSuite/TestActivityHeartBeatWorkflow_Success" time="592.310000">
			<failure message="Failed" type="">=== RUN   TestActivityTestSuite/TestActivityHeartBeatWorkflow_Success&#xA;    functional_test_base.go:235: Running TestActivityTestSuite/TestActivityHeartBeatWorkflow_Success in test shard 2/3&#xA;2024-10-30T00:42:34.206Z&#x9;info&#x9;StartWorkflowExecution&#x9;{&#34;wf-run-id&#34;: &#34;92cb9ee1-3aa5-43d9-8955-1474dbfc363e&#34;, &#34;logging-call-at&#34;: 

I suppose it's because of the &#xA;? This XML was generated by https://github.com/gotestyourself/gotestsum, for what it's worth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions