Class: TTK::Strategies::SqlQuery

Inherits:
Strategy show all
Includes:
Concrete
Defined in:
lib/ttk/strategies/SqlQuery.rb

Overview

This strategy manage SQL base tests. It use unit testing (EXCEPT ALL query) for checking results. To use it, you need to have dbi installed on your test system and have a database with these things:

* a test schema (MY)
* a reference schema (REF)

After that you have just to write all queries that you want to test. Queries will be called on each schema by applying a delta operation:

(REF ` MY) U (MY ` REF).

In queries, %s will be replaced by given schemas.

Constant Summary collapse

@@db =
nil

Instance Attribute Summary

Attributes inherited from Strategy

#status, #symtbl

Method Summary

Methods inherited from Strategy

#abort, #assign, #clean_instance_variables, #display_unexpected_exc, #display_unexpected_synflow_exc, #fail, #initialize, #initialize_flow_factory, #pass, #raise_error, #reject, #run, #running?, #skip, #skip_if_cached, #strategy, #strategy=, #symbols=, #testify, #timeout=, #to_s, #wclass=

Constructor Details

This class inherits a constructor from TTK::Strategies::Strategy