Grails
  1. Grails
  2. GRAILS-8687

Introduce a new test type allowing the usage of full GORM in a fast way

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Description

      It would be able to write some unit tests that can actually reach the database.

      Currently those tests need to be written as integration tests, but that means loading the entire application which is too slow.

      Is it possible to introduce a new test type that would allow us to write unit tests that could test methods calling updateQuery, for example, as well as every other GORM method, by injecting a real Hibernate session, but without loading everything else (Spring resources, Bootstrap, etc) so that it could be run almost as fast as unit tests and still enable us to better test domain classes?

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rodrigo Rosenfeld Rosas
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development