Closed mxhdev closed 8 years ago
This only works for Procedure calls
The following (unresolved) issues are relevant Add support for expressing expectations of Exceptions https://github.com/dbfit/dbfit/issues/35 "Execute Expect Exception" support https://github.com/dbfit/dbfit/pull/306
The following (mysql) test did not work as expected
!|Execute|CREATE PROCEDURE CalcLength(IN name varchar(100), OUT strlength int) set strlength =length(name);|
!|Execute Procedure Expect Exception|CalcLength|
|name |strlength?|
|yy|four|
!|Execute|drop procedure CalcLength|
rawsolution:
/static.error/ QUERY
!GENERATOR! SolutionGenerator/QueryPipeline
solution.txt
!ResultStorage!
Execute | QUERY |
Workaround was implemented in commit 1a140ef1452a676057bc3e5aaacb6cef44562edc
The SolutionGenerator class should also be able to generate dbfit html for queries which are expected to throw an error/exception This involves detecting the expectserror label in the "raw" solution file and applying the correct dbfit command (IUtil class)