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

[Tests] Break CocoonTestCase extending ScriptTestCase

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.0
    • 4.4.0
    • Tests
    • None

      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

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

              Created:
              Updated: