title: Test cases in Jasmine. Is it possible to run the same test on multiple different data sets?
body: <p>I would like to run a Jasmine tests multiple times using different test data and when any test fails that specific test case should be easily identifiable.</p>
  
  <p>In the NUnit testing framework this is can achievable with the TestCase attribute.  </p>
  
  <p>I have tried putting the it block inside of a foreach block and while the tests show, they do not run, as can be seen here: </p>
  
  <p><a href="https://i.stack.imgur.com/nnXH6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nnXH6.png" alt="enter image description here"></a></p>
  
  <p>Below is the implementation I have tried:</p>
  
  <pre><code>/// &lt;reference path="../Jasmine/jasmine.js"/&gt;
  /// &lt;reference path="../Jasmine/jasmine-html.js"/&gt;
  /// &lt;reference path="../../Site/wwwroot/lib/jquery/dist/jquery.js"/&gt;
  /// &lt;reference path="../../Site/wwwroot/js/nlHoldem.js"/&gt;
  
  describe("nlHoldem.js", function () {
      var mockHtml;
  
      var deckOfCards = [
          { id: 'ace-of-spades' },
          { id: 'king-of-spades' }
      ];
  
      beforeEach(function () {
          mockHtml = getMockHtml();
          $(document.body).append(mockHtml);
          nlHoldem.init();
      });
  
      afterEach(function () {
          $('#mock-html-container').remove();
          sessionStorage.clear();
      });
  
      deckOfCards.forEach(function (card) {
          it("should add styling of top -5px to "+ card.id +" on mouseover", function () {
              // Arrange
              var targetCard = $("#" + card.id);
  
              // Act
              targetCard.mouseover();
  
  
              // Assert
              expect(targetCard.css("top")).toBe("-5px");
          });
      });
  });
  </code></pre>