Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5345

Test task not working in a seam-gen project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.3.0.GA_CP09
    • 4.3.0.GA_CP09
    • Seam2
    • None
    • Workaround Exists
    • Hide

      edit the build.xml file in the seam-gen project folder, replace
      <property name="testng.jar" value="${basedir}/lib/testng.jar" />
      with
      <property name="testng.jar" value="${basedir}/lib/testng-jdk15.jar" />

      Show
      edit the build.xml file in the seam-gen project folder, replace <property name="testng.jar" value="${basedir}/lib/testng.jar" /> with <property name="testng.jar" value="${basedir}/lib/testng-jdk15.jar" />
    • Not Required

    Description

      The testng.jar has been renamed from testng.jar (EAP 4.3.8) to testng-jdk15.jar (EAP 4.3.9). As a result, the "test" target in a seam-gen project does not work anymore. The error output:

      ant test
      Buildfile: build.xml

      compiletest:

      copytestclasses:

      buildtest:
      [copy] Copying 1 file to /home/jharting/jboss/testing/EAP-4.3.9/workspace/seamgentest/test-build/META-INF
      [copy] Copying 1 file to /home/jharting/jboss/testing/EAP-4.3.9/workspace/seamgentest/test-build

      test:
      [taskdef] Could not load definitions from resource testngtasks. It could not be found.

      BUILD FAILED
      /home/jharting/jboss/testing/EAP-4.3.9/workspace/seamgentest/build.xml:311: Problem: failed to create task or type testng
      Cause: The name is undefined.
      Action: Check the spelling.
      Action: Check that any custom tasks/types have been declared.
      Action: Check that any <presetdef>/<macrodef> declarations have taken place.

      Attachments

        Activity

          People

            mnovotny@redhat.com Marek Novotny
            rhn-engineering-jharting Jozef Hartinger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: