<?xml version="1.0" encoding="UTF-8"?>
<suite name="DatabaseExtensionUnitTestSuite">
    <!--
        To test the database extension against a particular
        database, provide the connection settings below,
        and remove the <exclude /> tag which corresponds
        to the database to test. All tests which rely on
        this database will then run.
    -->

    <parameter name = "mySqlDbName" value="test_db"/> 
    <parameter name = "mySqlDbHost" value="127.0.0.1"/> 
    <parameter name = "mySqlDbPort" value="3306"/> 
    <parameter name = "mySqlDbUser" value="root"/>
    <parameter name = "mySqlDbPassword" value=""/>
    <parameter name = "mySqlTestTable" value="test_table"/>
    
    <parameter name = "pgSqlDbName" value="test_db"/> 
    <parameter name = "pgSqlDbHost" value="127.0.0.1"/> 
    <parameter name = "pgSqlDbPort" value="5432"/> 
    <parameter name = "pgSqlDbUser" value="postgres"/>
    <parameter name = "pgSqlDbPassword" value=""/>
    <parameter name = "pgSqlTestTable" value="test_table"/>
    
    <parameter name = "mariadbDbName" value="test_db"/> 
    <parameter name = "mariadbDbHost" value="127.0.0.1"/> 
    <parameter name = "mariadbDbPort" value="3306"/> 
    <parameter name = "mariadbDbUser" value="root"/>
    <parameter name = "mariadbDbPassword" value=""/>
    <parameter name = "mariadbTestTable" value="test_table"/>

    <parameter name = "sqliteDbName" value="tests/resources/test_db.sqlite"/>
    <parameter name = "sqliteDbHost" value=""/>
    <parameter name = "sqliteDbPort" value=""/>
    <parameter name = "sqliteDbUser" value=""/>
    <parameter name = "sqliteDbPassword" value=""/>
    <parameter name = "sqliteDbTestTable" value="test_table"/>

    <test name="DatabaseExtensionUnitTest">
        <groups>
            <run>
                <exclude name="requiresMySQL"/>
                <exclude name="requiresPgSQL"/>
                <exclude name="requiresMariaDB" />
            </run>
        </groups>
        <packages>
          <package name="com.google.refine.extension.database.*" />
        </packages>

    </test>
</suite>
