Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901759

jtreg should not count skipped tests as failed

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • jt4.2
    • tools
    • None
    • b04

      Tests like this should not be marked as failed by jtreg:

          @Test
          public void test() {
              int cpus = Runtime.getRuntime().availableProcessors();
              if (cpus < 1024) {
                  throw new org.testng.SkipException("Not enough CPUs: " + cpus);
              }
              // do the test ...
          }

      ===============================================
      Default Suite
      Total tests run: 1, Failures: 0, Skips: 1
      ===============================================

            Unassigned Unassigned
            prappo Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: