test/flowtestbase.rb in openwferu-0.9.8 vs test/flowtestbase.rb in openwferu-0.9.9

- old
+ new

@@ -51,15 +51,26 @@ @tracer = Tracer.new @engine.application_context["__tracer"] = @tracer @engine.register_participant('pp-workitem') do |workitem| + puts require 'pp'; pp workitem puts end + @engine.register_participant('pp-fields') do |workitem| + + workitem.attributes.keys.sort.each do |field| + next if field == "___map_type" or field == "__result__" + next if field == "params" + @tracer << "#{field}: #{workitem.attributes[field]}\n" + end + @tracer << "--\n" + end + @engine.register_participant('test-.*', PrintParticipant.new()) @engine.register_participant('block-participant') do |workitem| @tracer << "the block participant received a workitem" @tracer << "\n" @@ -70,10 +81,10 @@ end end def teardown - @engine.stop + @engine.stop if @engine end #def default_test () # assert true #end