Grails
  1. Grails
  2. GRAILS-8189

Geb functional tests pass every time when grails.project.work.dir is empty

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-M2
    • Fix Version/s: 2.0.1, 2.3.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Grails 2.0.0-SNAPSHOT-BUILD f1c9ed7af5aa407b8fd6d4050fbe63b7d11a20ca / #1531

      Description

      Geb functional tests pass every time when grails.project.work.dir is empty.

      Reproducing bug:

      cd grails-functional-tests/apps/gsp-reload-app
      grails -Dgrails.env=production -Dgrails.project.work.dir=/tmp/some_empty_dir test-app functional: -war
      

      I think Geb isn't installed/initialized early enough. This bug might cause some regressions in CI environments.

        Issue Links

          Activity

          Hide
          Lari Hotari added a comment -

          output is

          
          | Compiling 34 source files
          
          | Tests PASSED - view reports in target/test-reports
          
          Show
          Lari Hotari added a comment - output is | Compiling 34 source files | Tests PASSED - view reports in target/test-reports
          Hide
          Lari Hotari added a comment -

          A workaround is to execute "grails compile" in a fully clean environment before running tests.

          Show
          Lari Hotari added a comment - A workaround is to execute "grails compile" in a fully clean environment before running tests.
          Hide
          Lari Hotari added a comment -

          run-app also fails with a clean grails.project.work.dir:

          
          grails> run-app 
          | Packaging Grails application.....
          | Error WARNING: No default container found, installing Tomcat..
          | Plugin 'tomcat' with version '2.0.0.BUILD-SNAPSHOT' is already installed
          | Error Error running script run-app : java.lang.ClassNotFoundException: org.grails.plugins.tomcat.TomcatServerFactory (Use --stacktrace to see the full trace)
          
          Show
          Lari Hotari added a comment - run-app also fails with a clean grails.project.work.dir: grails> run-app | Packaging Grails application..... | Error WARNING: No default container found, installing Tomcat.. | Plugin 'tomcat' with version '2.0.0.BUILD-SNAPSHOT' is already installed | Error Error running script run-app : java.lang.ClassNotFoundException: org.grails.plugins.tomcat.TomcatServerFactory (Use --stacktrace to see the full trace)
          Hide
          Graeme Rocher added a comment -

          I believe this is already fixed

          Show
          Graeme Rocher added a comment - I believe this is already fixed

            People

            • Assignee:
              Graeme Rocher
              Reporter:
              Lari Hotari
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development