Filter SQL Test objects via command line or XML config
JackAce
Posts: 75 New member
Is there an easy way to filter out objects needed for SQL Test / tSQLt / SQLCop? I thought there was an option to have these automatically filtered in SQL Compare.
Right now, I am filtering these objects using the <exclude> tag in the XML configs, but it seems tedious to list out all these exclusions.
Is there an easier way? I thought I had a conversation with David Atkinson a while back who mentioned that there was some flag you could specify that filtered these objects automatically.
Right now, I am filtering these objects using the <exclude> tag in the XML configs, but it seems tedious to list out all these exclusions.
<exclude>Table:\[tSQLt\]</exclude> <exclude>StoredProcedure:\[SQLCop\]</exclude> <exclude>StoredProcedure:\[UnitTest\]</exclude> <exclude>StoredProcedure:\[tSQLt\]</exclude> <exclude>View:\[tSQLt\]</exclude> <exclude>Function:\[tSQLt\]</exclude> <exclude>Assembly:\[tSQLtCLR\]</exclude> <exclude>UserDefinedType:\[tSQLt\]</exclude>
Is there an easier way? I thought I had a conversation with David Atkinson a while back who mentioned that there was some flag you could specify that filtered these objects automatically.
Comments
Please try enabling the option to ignore "tSQLt framework and tests" in the Ignore section of the SQL Compare options.
Via the GUI ->Edit project ->Options tab -> Ignore -> tSQLt framework and tests
Via the command line use the /options:ignoretSQLt or /options:itst.
Using a XML argument files <options>itst</options>
A full list of the available project options can be found HERE.
Many Thanks
Eddie
Senior Product Support Engineer
Redgate Software Ltd
Email: support@red-gate.com