title: How to run only failed tests in protractor
body: <p>In my js file I have defined a bunch of test case, some of them sometimes fails and I would like to re-run just these failed. 
  Anyone could advise some ready feature which I could use or some another solution? It's really inconvenient and time-consuming running everything once again. The below example may show you how my spec looks like.</p>
  
  <pre><code>describe('Test -&gt; Users table with admin privileges', function () {
  var EC = protractor.ExpectedConditions;
  var welcomePage = new WelcomePage();
  var usersPage = new UsersPage();
  
  beforeEach(function () {
      LogIn.asAdmin1();
      clickWithWait(welcomePage.usersButton);
      browser.wait(hasNonZeroCount(usersPage.allRows), WAIT_TIMEOUT, 'users list did not appear');
  });
  
  afterEach(function () {
      welcomePage.logout();
  });
  
  it('verifies counter on active tab', function () {
      browser.wait(EC.elementToBeClickable(usersPage.allRows.first()), WAIT_TIMEOUT, 'firstRow was not visible ');
      usersPage.allRows.count().then(function (count) {
          expect(usersPage.activeTab.getText()).toContain('Active' + ' (' + count + ')');
      });
  });
  
  it('verifies counter on archived tab', function () {
      browser.wait(EC.elementToBeClickable(usersPage.allRows.first()), WAIT_TIMEOUT, 'firstRow was not visible ');
      // Initial condition for case of none archived user have to be added here (it will remove if statement).
      clickWithWait(usersPage.archivedTab);
      usersPage.allRows.count().then(function (count) {
          if (count &gt; 0) {
              expect(usersPage.archivedTab.getText()).toContain('Archived' + ' (' + count + ')');
          } else {
              console.log("Test Ignored due to none records")
          }
      });
  });
  </code></pre>