Grails
  1. Grails
  2. GRAILS-787

Top level task: Improve Grails unit testing support

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.1
    • Fix Version/s: 2.0 final
    • Component/s: Testing
    • Labels:
      None
    1.
    Create grails-test/unit and grails-test/integration directories for integration and unit tests Sub-task Closed Graeme Rocher  
     
    2.
    Allow the execution of a single unit test Sub-task Closed Jeff Scott Brown  
     
    3.
    Implement continuous testing by loading a thread the monitors changes and executes tests Sub-task Closed Graeme Rocher  
     
    4.
    Provide more documentation on testing specifically with mocks Sub-task Closed Unassigned  
     
    5.
    Define behaviour for existing tests left in grails-test/ Sub-task Closed Graeme Rocher  
     
    6.
    Have functional tests automatically flush and delete all GORM objects between test methods Sub-task Closed Graeme Rocher  
     
    7.
    Make tests generate reports automatically (console output is hidden otherwise) Sub-task Closed Graeme Rocher  
     
    8.
    Update generated unit test templates to include comments explaining how to mock/test the artifact in question Sub-task Closed Marc Palmer  
     
    9.
    Add test base classes / meta magic to provide custom test features for different artefacts i.e. TagLibTestCase Sub-task Closed Marc Palmer  
     
    10.
    Look at having a custom test runner that is more helpful when things go wrong, and is smart about test environment required for each test (i.e. run functional tests in one batch etc) Sub-task Closed Graeme Rocher  
     
    11.
    Implement support for testing withFormat content negotiation Sub-task Closed Graeme Rocher  
     
    12.
    Test reports only count 1 failure in HTML reports if a test had multiple failures Sub-task Closed Peter Ledbrook  
     
    13.
    TestApp.groovy script should delete previous test reports Sub-task Closed Peter Ledbrook

    0%

    Original Estimate - 30 minutes
    Remaining Estimate - 30 minutes
     
    14.
    Support for unit testing URL Mappings Sub-task Closed Graeme Rocher  
     
    15.
    Decorate command objects with errors property in GrailsControllerUnitTestCase Sub-task Closed Peter Ledbrook  
     
    16.
    Add unit test support for taglibs Sub-task Closed Peter Ledbrook  
     
    17.
    Sanitize stack traces that are put into junit results Sub-task Closed Graeme Rocher  
     
    18.
    Mock the behaviour of render obj as XML (and JSON) Sub-task Closed Peter Ledbrook  
     
    19.
    Improve the visiblity of the Tests passed/failed message at the end, it is hard to see through the noise of the report generation etc. Sub-task Closed Peter Ledbrook  
     
    20.
    Improve the speed of running unit tests by no longer depending on packageApp and loadApp Sub-task Closed Peter Ledbrook  
     
    21.
    Create unit test rather than integration test by default Sub-task Closed Peter Ledbrook  
     
    22.
    NPE in GrailsMock.groovy when using mockFor/demand when a parameter is null Sub-task Closed Peter Ledbrook  
     
    23.
    Data binding a non-existent nested domain object throws an exception when testing Sub-task Closed Peter Ledbrook  
     
    24.
    Make GrailsUrlMappingsTestCase an integration test Sub-task Closed Peter Ledbrook  
     
    25.
    Have mockLogging also mock out 'isEnabled' methods Sub-task Closed Peter Ledbrook  
     
    26.
    Unique Constraint doesn't account for update to existing item in list of testInstances Sub-task Closed Peter Ledbrook  
     
    27.
    Save provided by MockUtils always adds an object to the list of test instances Sub-task Closed Peter Ledbrook  
     
    28.
    MockUtils.addValidateMethod doesn't pull in constraints from superclass Sub-task Closed Peter Ledbrook  
     
    29.
    Provide hook to enable third-party test targets to automatically run on test-app Sub-task Closed Peter Ledbrook  
     
    30.
    Mock delete method doesn't remove item from list of tests instances Sub-task Closed Peter Ledbrook  
     
    31.
    Mocked list method doesn't handle arguments like 'sort', 'max' and 'offset' Sub-task Closed Peter Ledbrook  
     
    32.
    MockUtils.mockDomain does not mock discard Sub-task Closed Peter Ledbrook  
     
    33.
    MockUtils.mockDomain does not work when using UUID Sub-task Closed Peter Ledbrook  
     
    34.
    HTTP Method-based UrlMapping Support Sub-task Closed Graeme Rocher  
     
    35.
    CommandObjectTestCase Sub-task Closed Graeme Rocher  
     
    36. ControllerTest should handle default return from actions Sub-task Open Peter Ledbrook  
     
    37.
    Cannot Use "mockFor" more than once in a test Sub-task Closed Peter Ledbrook  
     
    38.
    Allow reports to be optional for TestApp script Sub-task Closed Peter Ledbrook  
     
    39.
    Running a single test method from test suite Sub-task Closed Peter Ledbrook  
     
    40.
    Add empty methods for setUp and tearDown to Test templates Sub-task Closed Peter Ledbrook  
     
    41.
    one more assert in a test function cause failue of another test function Sub-task Closed Peter Ledbrook  
     
    42.
    Suppress successful unit tests from commandline output Sub-task Closed Peter Ledbrook  
     
    43.
    Add a way to test the new withForm { }.invalidToken { } construct Sub-task Closed Peter Ledbrook  
     
    44.
    Add a way to test the new forward(action:"foo") method Sub-task Closed Peter Ledbrook  
     
    45.
    Add method to GrailsUnitTestCase to load a codec Sub-task Closed Peter Ledbrook  
     
    46.
    Add method to mock tags in custom namespaces Sub-task Closed Peter Ledbrook  
     
    47.
    Some of the plugins unit tests are failing Sub-task Closed Peter Ledbrook  
     
    48.
    Problem with loading plugins in the integration tests - not possible to test output of the render method Sub-task Closed Peter Ledbrook  
     
    49.
    Add "XML" property to the request object that parses the request content on demand using XmlSlurper Sub-task Closed Peter Ledbrook  
     
    50.
    Add method to MvnUnitTestCase that resets the mock request and response Sub-task Closed Peter Ledbrook  
     
    51.
    Mocking DynamicFinders: Check for 'order' params Sub-task Closed Peter Ledbrook  
     
    52.
    Unit Test created via create-service should extend GrailsUnitTestCase Sub-task Closed Peter Ledbrook  
     
    53.
    Add setJsonRequestContent() methods to ControllerUnitTestCase Sub-task Closed Peter Ledbrook  
     
    54.
    Add getXml/JsonResponseContent() methods to ControllerUnitTestCase Sub-task Closed Peter Ledbrook  
     
    55.
    Running single unit test starts up integration testing as well Sub-task Closed Luke Daley  
     
    56.
    UrlMappingsTests extends GrailsUrlMappingsTestCase is not loaded in integration tests Sub-task Closed Peter Ledbrook  
     
    57.
    Add option to "test-app" to run only a single "type" of test, not just a single "phase" Sub-task Closed Luke Daley  
     
    58.
    Add "--dev-mode" option to "test-app" that uses "run-app" instead of "run-war" for functional tests Sub-task Closed Peter Ledbrook  
     
    59.
    Would like to see a mocked bindData() method on ControllerUnitTestCase. Sub-task Closed Graeme Rocher  
     
    60.
    Allow non-JUnit test plugins (like WebTest) to hook into TestApp Sub-task Closed Luke Daley  
     
    61.
    Restore versions of MockUtils methods that don't take an "errorsMap" argument Sub-task Closed Peter Ledbrook  
     
    62.
    Mock list() and dynamic finder methods don't work with sorting and paging parameters if there are no results Sub-task Closed Peter Ledbrook  
     
    63.
    Add mock read() method Sub-task Closed Peter Ledbrook  
     
    64.
    controllerName and actionName not known when using ControllerUnitTestCase Sub-task Closed Graeme Rocher  
     
    65.
    Can't test POJO domain class with mockDomain Sub-task Resolved Unassigned  
     
    66.
    Provide hooks for others testing framework different from junit like selenium, easyb, etc Sub-task Closed Luke Daley  
     
    67.
    mock the behaviour of render obj as JSON Sub-task Closed Peter Ledbrook  
     
    68.
    Provide regex support for "assertOutputEquals" Sub-task Closed Jeff Scott Brown  
     

      Activity

      Hide
      Marc Palmer added a comment -

      Rolling over to 0.5.5 reduce workload for 0.5 pre JavaOne

      Show
      Marc Palmer added a comment - Rolling over to 0.5.5 reduce workload for 0.5 pre JavaOne
      Hide
      Graeme Rocher added a comment -

      There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3

      for 1.2 final only issues considered blocking will now be fixed

      Show
      Graeme Rocher added a comment - There is no scope / time to resolve these remaining lower priority issues for 1.2 so moving to 1.3 for 1.2 final only issues considered blocking will now be fixed
      Hide
      Graeme Rocher added a comment -

      unit testing improved in 2.0

      Show
      Graeme Rocher added a comment - unit testing improved in 2.0

        People

        • Assignee:
          Peter Ledbrook
          Reporter:
          Graeme Rocher
        • Votes:
          13 Vote for this issue
          Watchers:
          9 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:
            Last Reviewed:

            Time Tracking

            Estimated:
            Original Estimate - 30 minutes
            30m
            Remaining:
            Remaining Estimate - 30 minutes
            30m
            Logged:
            Time Spent - Not Specified
            Not Specified

              Development