Uploaded image for project: 'Buildr'
  1. Buildr
  2. BUILDR-451

Groovy JUnit tests don't run

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Auto Closed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.5
    • Component/s: Test frameworks
    • Labels:
    • Environment:
      OS X (Leopard), Ruby 1.8.6, Java 1.5, Groovy 1.7.1

      Description

      I've got a very simple groovy project that I'd like to build and package with Buildr, but my JUnit 4 tests never get executed. The following describes my project layout, OS, etc. The project and build file can all be downloaded at http://code.google.com/p/shawty/.

      snip
      kaa:shawty rich$ buildr -V
      Buildr 1.3.5
      kaa:shawty rich$ ruby -v
      ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
      kaa:shawty rich$ uname -a
      Darwin kaa-2.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
      kaa:shawty rich$ find . -name "*.groovy"
      ./src/main/groovy/com/google/shawty/XPathExtractor.groovy
      ./src/test/groovy/com/google/shawty/XPathExtractorTests.groovy
      kaa:shawty rich$ find . -type d|grep -v "svn|com"
      .
      ./.settings
      ./bin
      ./src
      ./src/main
      ./src/main/groovy
      ./src/test
      ./src/test/groovy
      ./src/test/resources
      ./test
      ./test/main
      kaa:shawty rich$ buildr clean test
      (in /Users/rich/Documents/workspace/shawty, development)
      Cleaning shawty
      Testing shawty
      Compiling shawty into /Users/rich/Documents/workspace/shawty/target/classes
      [groovyc] Compiling 1 source file to /Users/rich/Documents/workspace/shawty/target/classes
      Compiling shawty:test into /Users/rich/Documents/workspace/shawty/target/test/classes
      [groovyc] Compiling 1 source file to /Users/rich/Documents/workspace/shawty/target/test/classes
      -> Shouldn't tests be run here? <-
      Completed in 1.178s
      snip

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cariensrs Rich Cariens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: