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

Is they any way we can get the UTPLSQL historical runs by using RUN ID and their coverage #192

Open
venkat-kasula opened this issue Feb 8, 2021 · 2 comments
Labels

Comments

@venkat-kasula
Copy link

Is they any way we can get the UTPLSQL historical runs by using RUN ID which gets generated automatically and their coverage using the inbuilt tables of UTPLSQL.

used the below query but could not find any data in the result of below query

select owner, name, type
from dbmspcc_runs r
join dbmspcc_units u
on r.run_id = u.run_id

@venkat-kasula
Copy link
Author

@pesse can you please help me here

@pesse
Copy link
Member

pesse commented Jun 10, 2021

Hey @venkat-kasula - thanks for your patience. The last months have been a bit rough.

There is no way to get data about historical runs in utPLSQL or the cli. This is a design decision, because storing the outcomes of a run is the task of the surrounding CI environment (e.g. Jenkins).
There is a lightweight Apex solution you might be interested in: https://github.com/triologygmbh/utPLSQL-APEX

There is also an even more lightweight way of storing your run results in the database, though you cannot do that via the cli right now (well, you could create your own reporter to do that, but that's a bit more effort):

create table ut_runs ( 
  run_timestamp timestamp,
  output varchar2(4000)
);

insert into ut_runs
  select current_timestamp, column_value from table(ut.run());

@pesse pesse added the question label Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants