Avro
  1. Avro
  2. AVRO-138

Poor network connection blocks Java unit-tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: java
    • Labels:
      None

      Description

      The ant target test-java compiles the test code, run checkstyle, builds javadoc and then runs the unit tests. With poor or no internet connection, javadoc fails because it's not able to access java.sun.com or jackson.codehaus.org. These are used to create links in documentation for the JRE and Jackson APIs.

      In the following patch, I create a new target unit-test-java and make test-java depend on it. With this the order of execution for test-java is compile test code, run unit tests, run checkstyle and then build javadoc. When, someone wants to just run the unit-tests, he/she can use unit-test-java.

      1. AVRO-138.patch
        0.6 kB
        Thiruvalluvan M. G.

        Activity

        Hide
        Doug Cutting added a comment -

        Yes, I've been meaning to do something like this for a while. A big advantage from my point of view is not just working offline, but that running a test with -Dtestcase= now takes only five seconds, greatly shortening the debug loop.

        I just committed this. Thanks, Thiru!

        Show
        Doug Cutting added a comment - Yes, I've been meaning to do something like this for a while. A big advantage from my point of view is not just working offline, but that running a test with -Dtestcase= now takes only five seconds, greatly shortening the debug loop. I just committed this. Thanks, Thiru!

          People

          • Assignee:
            Thiruvalluvan M. G.
            Reporter:
            Thiruvalluvan M. G.
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development