title: How to run cypress tests using docker?
body: <p>I am trying to run my Cypress tests using Docker.</p>
  <p>Here is my <code>Dockerfile</code>:</p>
  <pre><code>FROM cypress/base
  RUN mkdir /app
  WORKDIR /app
  COPY . /app
  RUN npm install
  RUN $(npm bin)/cypress verify
  RUN [&quot;npm&quot;, &quot;run&quot;, &quot;cy:run&quot;]
  </code></pre>
  <p>The command I am using to run the Cypress tests is: <code>docker build -t cypress .</code></p>
  <p>When I run the test &amp; it passes I get this output:</p>
  <p><a href="https://i.stack.imgur.com/E2lEG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2lEG.png" alt="passDockerTest" /></a></p>
  <p>When I then make the test fail to see what the output looks like, this is it:</p>
  <p><a href="https://i.stack.imgur.com/BvNTB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BvNTB.png" alt="failingDockerTest" /></a></p>
  <p>My test is very basic atm, as I'm focusing on getting docker working properly:</p>
  <pre><code>it('dummy test', () =&gt; {
     cy.visit('https://www.google.com/');
     // I uncomment the below assertion to make the test fail to see the report
     // cy.get('.todo-list li').first().should('have.text', 'Pay electric bill')    
  })
  </code></pre>
  <p>Can someone please tell me why a test summary isn't appearing in the first screenshot <em>(when the test is passing)</em>?</p>
  <p>Am I running the tests via docker correctly? I assume I should be seeing test results once they're finished.</p>