Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-3391

error in JUnit reports generation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • Trunk
    • Trunk
    • framework
    • None

    Description

      the junitreport task is generating bad links for displaying the tests result.

      Steps to reproduce :

      1. ant run-install then ant run-tests
      2. open in a browser the runtime/logs/test-results/html/index.html file
      3. click on the "all tests" link, wich is displaying 135
      4. then try to get into a class or a test name.
        It should display an error message, saying that there is no file.

      The link is calling file:///0_accountingtests.html#accounting-tests-data-load but should be file://<path to ofbiz instance>/runtime/logs/test-results/html/0_accountingtests.html#accounting-tests-data-load

      When looking a the generated html files, there is an unneeded "/" at the beginning of the file :

      <td><a href="/0_accountingtests.html">accountingtests</a></td><td><a name="auto-accounting-transaction-tests.testAcctgTransOnPaymentSentToSupplier"></a><a href="/0_accountingtes
      

      which should be :

      <td><a href="0_accountingtests.html">accountingtests</a></td><td><a name="auto-accounting-transaction-tests.testAcctgTransOnPaymentSentToSupplier"></a><a href="0_accountingtes
      

      Attachments

        Activity

          People

            jacopoc Jacopo Cappellato
            erwan Erwan de Ferrieres
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: