<p>I've created a Helm test but when it succeeds or fails, it only outputs a simple message about whether it succeeded or failed <em>(see below)</em>. I would like for it to be able to output custom info about what tests it ran and some info about them. So if it failed, I'd see which things failed specifically. And even if it succeeds, it would show me what things it tested.</p>
<pre><code>NAME: my-app
LAST DEPLOYED: Thu Jan 28 17:45:51 2021
NAMESPACE: default
STATUS: deployed
REVISION: 2
TEST SUITE:     my-app-test
Last Started:   Thu Jan 28 17:46:05 2021
Last Completed: Thu Jan 28 17:46:06 2021
Phase:          Succeeded
</code></pre>
<p>I don't see anywhere I can specify this or allow it to add to that output?</p>

<p>As I stated in the comment:</p>
<blockquote>
<p>Hello, <code>$ helm test</code> has a parameter <code>--logs</code> where it's description states: &quot;dump the logs from test pods (this runs after all tests are complete, but before any cleanup)&quot;.</p>
</blockquote>
<p><code>helm test RELEASE_NAME --logs</code> can be used to produce logs from your scheduled tests:</p>
<ul>
<li><em><a href="https://helm.sh/docs/topics/chart_tests/" rel="nofollow noreferrer">Helm.sh: Docs: Topic: Chart test</a></em></li>
</ul>
<hr />
<p>An example of how <code>$ helm test</code> works could be following:</p>
<ul>
<li>Create an example <code>Helm</code> Chart:
<ul>
<li><code>$ helm create raven</code></li>
</ul>
</li>
<li>Go into directory and install the Chart:
<ul>
<li><code>$ cd raven &amp;&amp; helm install raven .</code></li>
</ul>
</li>
<li>After the Chart is deployed run:
<ul>
<li><code>$ helm test raven</code></li>
</ul>
</li>
</ul>
<p>The tests for this example Chart are located in the:</p>
<ul>
<li><code>ROOT_CHART_DIR/templates/tests/</code></li>
</ul>
<p>The file that describes a test (<code>test-connection.yaml</code>) looks like below:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Pod
metadata:
  name: &quot;{{ include &quot;raven.fullname&quot; . }}-test-connection&quot;
  labels:
    {{- include &quot;raven.labels&quot; . | nindent 4 }}
  annotations:
    &quot;helm.sh/hook&quot;: test
spec:
  containers:
    - name: wget
      image: busybox
      command: ['wget']
      args: ['{{ include &quot;raven.fullname&quot; . }}:{{ .Values.service.port }}']
  restartPolicy: Never
</code></pre>
<p>This tests could be modified to output the specific messages depending on what the tests actually determined.</p>
<p>The output of the last command should be following:</p>
<pre class="lang-sh prettyprint-override"><code>NAME: raven
&lt;-- OMITTED --&gt; 
NOTES:
&lt;-- OMITTED --&gt; 

POD LOGS: raven-test-connection
Connecting to raven:80 (10.8.12.208:80)
saving to 'index.html'
index.html           100% |********************************|   612  0:00:00 ETA
'index.html' saved
</code></pre>
<p>As it can be seen above the output of <code>wget</code> command with its args was displayed.</p>
