title: How to dynamically generate Cypress tests based on data received in `before()`?
body: <p><a href="https://docs.cypress.io/faq/questions/using-cypress-faq.html#Can-I-run-the-same-tests-on-multiple-subdomains" rel="nofollow noreferrer">This example</a> is very close to what I need, except that the <code>urls</code> are not known ahead of time (can't hardcode them).</p>
  <p>The <code>urls</code> are generated in the <code>before()</code> hook by running a script:</p>
  <pre><code>before(() =&gt; {
    cy.exec(&lt;run script that generates a temporary urls.json file&gt;);
    cy.readFile(&quot;./urls.json&quot;)....
  });
  </code></pre>
  <p>How could I dynamically generate separate tests based on the generated <code>urls.json</code>?</p>
  <p>The reason they need to be separate tests is <a href="https://github.com/cypress-io/cypress/issues/944" rel="nofollow noreferrer">this</a>.</p>