Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3425

[Tests] Break CocoonTestCase extending ScriptTestCase

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.4.0
    • Component/s: Tests
    • Labels:
      None

      Description

      Currently, CocoonTestCase extends ScriptTestCase
      It should be broken, because a Test can need Cocoon without the need of a database
      Then the tests will be optimized
      If the dependencies are well declared, it will be ok

      How to do it :

      • remove the extends ScriptTestCase
      • in default TestConfigSet getConfigSet(), the withSqlFile should pass the parameter getDataSourceFile() as well as now if and only if it is instanceof ScriptTestCase. Otherwise, it should pass null (here is the optimization, then no derby database will be created and thus the running time would be better without the file writing)
      • all the tests that do not compile anymore with public String getDBType() must implement ScriptTestCase (AbstractJDBCTestCase, etc.)
      • test that the tests still pass without any issue

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sprieul Simon Prieul (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: