Skip to content

Filtering tests for execution by including or excluding

Jakub Raczek edited this page Aug 21, 2017 · 4 revisions

You can filter some of tests by including or excluding them by launching application with options

-DfilterInclude=fetch_compare_test,minus_file_output.union_compare_failure_count_test,g.z.f

comma separated directories or test files which you want to include

-DfilterExclude=a.b.test

comma separated directories or test files which you want to exclude

Use '.' to set filter for subfolders, e.g. "folder.subfolder"

You can also filter some test in connection definition cmpSqlResults-config.xml in filter section

<filter>
    <!-- categories/directories or test files which you want to run. All tests will be run if
    you leave it empty. You can use many (or none) include elements. -->
	<include>fetch_compare_test.inline_sql_MySQL_PostgreSQL</include>
		<include>compare_with_file</include>
        <include>delta</include>
        <!-- categories/directories or test files which you want to exclude (from those included). You can use many
        (or none) exclude elements. -->
        <exclude>cube</exclude>
    </filter>