Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None

      Description

      log4cxx comes with a decent amount of unit tests, but how to run them hasn't been apparent to me. When getting the unit tests running from an Ant build (see related bug), there are on the order of 15 failures. I'm still investigating but at least some of them are due to the tests not being updated to keep in sync with the code base.

      The most obvious old test are in xmllayouttest where log4cxx outputs class and module attributes for locationInfo (currently empty) and the comparison log does not contain them.

        Activity

        Curt Arnold created issue -
        Hide
        Curt Arnold added a comment -

        Only the XML layout tests were truly stale. Other tests did have a strict expectation that source file names did not include a path, I added filters (filenamefilter and xmlfilenamefilter) to transform any occurance of the value of _FILE_ to the expected file name. It wasn't apparent to me how to run the tests from the existing make files and am not a make guru. In the Ant build file added in issue LOGCXX-25, I included targets that will run the tests.

        Show
        Curt Arnold added a comment - Only the XML layout tests were truly stale. Other tests did have a strict expectation that source file names did not include a path, I added filters (filenamefilter and xmlfilenamefilter) to transform any occurance of the value of _ FILE _ to the expected file name. It wasn't apparent to me how to run the tests from the existing make files and am not a make guru. In the Ant build file added in issue LOGCXX-25 , I included targets that will run the tests.
        Curt Arnold made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 0.9.8 [ 10782 ]

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Curt Arnold
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development