Announcement Announcement Module
Collapse
No announcement yet.
Grails / JUnit Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Grails / JUnit

    Hello!

    I'm wondering if there's any way to run a single grails unit test (1 method in a test class). In a normal java project I can right click on a test method or select a single test method from the junit view and run/re-run the test. It seems like the only option for running grails tests is to run-as | test-app

    Thanks!

  • #2
    Unit tests can be run as a regular run-as -> JUnit test, but integration tests require run-as -> Test-app. So, for unit tests, you should be able to run a single test just as you can with Java.

    Comment


    • #3
      Originally posted by Andrew Eisenberg View Post
      Unit tests can be run as a regular run-as -> JUnit test, but integration tests require run-as -> Test-app. So, for unit tests, you should be able to run a single test just as you can with Java.
      Ah, that explains it. Yes, unit tests work as expected. Thanks Andrew!

      Comment

      Working...
      X