★ wanayoo — archive 1999 https://github.com/utPLSQL/utPLSQL/pull/402Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`ut_output_buffer` is now fully abstracted from caller #402

Closed
wants to merge 14 commits into from

Conversation

@jgebal
Copy link
Member

@jgebal jgebal commented Jul 14, 2017

Resolves #391
The caller can use reporter to get the output data.

Introduced new abstract type: ut_output_reporter_base.
Every reporter based on that type is supposed to use output buffer.
So for every reporter of type ut_output_reporter_base, client can call functions:

  • get_lines
  • lines_to_dbms_output
  • get_lines_cursor

Also, the reporters don't need to call parent reporter's method to finalize the reporting.
New finalize event is added.
There is no direct dependency between ut_runner.run and ut_output_buffer so we may now pass a reporter that doesn't report to output but saves data to table for example.

… use reporter to get the output data.

Introduced new abstract type: `ut_output_reporter_base`.
Every reporter based on that type is supposed to use output buffer.
So for every reporter of type `ut_output_reporter_base`, client can call functions:
- get_lines
- lines_to_dbms_output
- get_lines_cursor

Also, the reporters don't need to call parent reporter's method to finalize the reporting.
New finalize event is added.
There is no direct dependency between `ut_runner.run` and `ut_output_buffer` so we may now pass a reporter that doesn't report to output but saves data to table for example.
@jgebal jgebal added the enhancement label Jul 14, 2017
@jgebal jgebal self-assigned this Jul 14, 2017
@jgebal jgebal requested review from viniciusam and Pazus Jul 14, 2017
@coveralls
Copy link

@coveralls coveralls commented Jul 14, 2017

Coverage Status

Coverage decreased (-0.3%) to 91.656% when pulling d71e4fe on jgebal:feature/reporters_object_model_fix into 93dff9b on utPLSQL:develop.

@jgebal jgebal added this to the v3.0.2 milestone Jul 14, 2017
@coveralls
Copy link

@coveralls coveralls commented Jul 14, 2017

Coverage Status

Coverage decreased (-0.3%) to 91.694% when pulling 678cbcc on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

1 similar comment
@coveralls
Copy link

@coveralls coveralls commented Jul 14, 2017

Coverage Status

Coverage decreased (-0.3%) to 91.694% when pulling 678cbcc on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 14, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling e0e7cca on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 15, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

2 similar comments
@coveralls
Copy link

@coveralls coveralls commented Jul 15, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 15, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 9ebea7a on jgebal:feature/reporters_object_model_fix into 625232c on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 15, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 061c7e9 on jgebal:feature/reporters_object_model_fix into f82dcac on utPLSQL:develop.

1 similar comment
@coveralls
Copy link

@coveralls coveralls commented Jul 15, 2017

Coverage Status

Coverage increased (+0.3%) to 92.242% when pulling 061c7e9 on jgebal:feature/reporters_object_model_fix into f82dcac on utPLSQL:develop.

@jgebal jgebal modified the milestones: v3.1.0, v3.0.2 Jul 17, 2017
@coveralls
Copy link

@coveralls coveralls commented Jul 19, 2017

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

2 similar comments
@coveralls
Copy link

@coveralls coveralls commented Jul 19, 2017

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 19, 2017

Coverage Status

Coverage increased (+0.3%) to 91.752% when pulling a7dc944 on jgebal:feature/reporters_object_model_fix into 0f2c2d7 on utPLSQL:develop.

# Conflicts:
#	source/api/ut_runner.pkb
@coveralls
Copy link

@coveralls coveralls commented Jul 21, 2017

Coverage Status

Coverage increased (+0.3%) to 91.856% when pulling 0cf61b7 on jgebal:feature/reporters_object_model_fix into 55fe15f on utPLSQL:develop.

end if;
end loop;

end fire_event;

overriding member procedure fire_event(self in out nocopy ut_event_listener, a_event_name varchar2) is

This comment has been minimized.

@Pazus

Pazus Jul 22, 2017
Member

I propose to call it fire on event to be consistent with other similar procedures

This comment has been minimized.

@jgebal

jgebal Jul 29, 2017
Author Member

ok

@@ -60,7 +56,8 @@ create or replace type ut_reporter_base authid current_user as object(
member procedure after_calling_suite(self in out nocopy ut_reporter_base, a_suite in ut_logical_suite),

-- run hooks continued
member procedure after_calling_run (self in out nocopy ut_reporter_base, a_run in ut_run)
member procedure after_calling_run (self in out nocopy ut_reporter_base, a_run in ut_run),
not instantiable member procedure finalize(self in out nocopy ut_reporter_base)

This comment has been minimized.

@Pazus

Pazus Jul 22, 2017
Member

Could you add an explaining comment so the new reporter developer understand what he has to implement there if his reporter is not an output reporter

This comment has been minimized.

@jgebal

jgebal Jul 29, 2017
Author Member

will do

This comment has been minimized.

@jgebal

jgebal Jul 29, 2017
Author Member

@Pazus, or maybe it should have default (empty) implementation, like the rest of the methods?

@coveralls
Copy link

@coveralls coveralls commented Jul 24, 2017

Coverage Status

Coverage increased (+0.3%) to 91.791% when pulling 130eb60 on jgebal:feature/reporters_object_model_fix into 2a6dcf8 on utPLSQL:develop.

1 similar comment
@coveralls
Copy link

@coveralls coveralls commented Jul 24, 2017

Coverage Status

Coverage increased (+0.3%) to 91.791% when pulling 130eb60 on jgebal:feature/reporters_object_model_fix into 2a6dcf8 on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 26, 2017

Coverage Status

Coverage increased (+0.3%) to 91.596% when pulling 75bd8ea on jgebal:feature/reporters_object_model_fix into 564a328 on utPLSQL:develop.

jgebal added 2 commits Jul 28, 2017
…s_object_model_fix

# Conflicts:
#	source/api/ut_runner.pkb
@coveralls
Copy link

@coveralls coveralls commented Jul 28, 2017

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

2 similar comments
@coveralls
Copy link

@coveralls coveralls commented Jul 28, 2017

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

@coveralls
Copy link

@coveralls coveralls commented Jul 28, 2017

Coverage Status

Coverage increased (+0.3%) to 92.404% when pulling 0e88d6d on jgebal:feature/reporters_object_model_fix into 6a527c6 on utPLSQL:develop.

jgebal and others added 3 commits Jul 29, 2017
…ype.

Created base type for output_buffers.
Created header table for table output data.
Updated `ut_output_reporter_base` to contain by default `ut_output_table_buffer`
Updated tests for output buffers.
Refreshed list of sources for RunAll script.
@jgebal
Copy link
Member Author

@jgebal jgebal commented Aug 2, 2017

Closing this PR, will reopen from utPLSQL project feature branch.

@jgebal jgebal closed this Aug 2, 2017
@Pazus Pazus modified the milestones: v3.0.3, v3.1.0 Aug 5, 2017
@jgebal jgebal deleted the jgebal:feature/reporters_object_model_fix branch Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.