Feature/update project documentation#230
Feature/update project documentation#230Pazus merged 9 commits intoutPLSQL:developfrom jgebal:feature/update_project_documentation
Conversation
…uded in html docs. Updated project details Updated mkdocs.yml - new pages added Updated readme.md with new links
Added documentation for reporters and runnin-uni-tests Added documentation for ut_run-script
Pazus
left a comment
There was a problem hiding this comment.
I think we should add to the Installation guide a note that we create dbms_profiler tables if they dont already exists.
|
|
||
|  | ||
|
|
||
| Check out the sections on [annotations](userguide/annotations.md) and [expectations](userguide/expectations.md) to see how to define your tests |
There was a problem hiding this comment.
I think we should provide lenks to other doc pages. Maybe womewhere in the beginning or at the end.
There was a problem hiding this comment.
There is a bit of a conflict here.
The html doc generated with mkdocs contains all the pages and links as a menu.
I wanted to avoid duplication on the index page with what is defined in mkdocs.yml already.
I just pointed references to the things that are mentioned on the index.
We could however have the contents section (similar to the one in readme.md file).
The trouble is the duplication of sources.
Maybe we should generate docs from main project page and the readme.md should be the main page?
Anyway. That could be done as a further cleanup.
| - `be_greater_than` | ||
| - `be_greater_or_equal` | ||
| - `be_false` | ||
| # Matchers |
There was a problem hiding this comment.
I think we should mention that most matchers have shortcuts such as to_equal
There was a problem hiding this comment.
I didn't mention the shortcuts. We could add them as a separate section.
I think some shortcuts are not complete (not all data types have shortcuts to supported matchers). This is why they re not mentioned in the documentation.
|
|
||
| Usage: | ||
| ```sql | ||
| ut.expect( a_actual {mulitple data-types} ).to_( be_between( a_lower_bound {mulitple data-types}, a_upper_bound {mulitple data-types}) ); |
|
|
||
| Usage: | ||
| ```sql | ||
| ut.expect( a_actual buulean ).to_( be_false() ); |
|
|
||
| If a matcher evaluated to NULL, then both `to_` and `not_to` will cause the expectation to report failure. | ||
|
|
||
| Example: |
There was a problem hiding this comment.
I think examples should be moved to the beginning of the page. To be honest this a_actual {mulitple data-types} is a bit tricky from the first glance. Examples at the beginning are going to help to treat such notaion.
|
|
||
| #Teamcity reporter | ||
|
|
||
| [Teamcity](https://www.jetbrains.com/teamcity/) is a CI server by Jetbrains. The CI has it's own format of reporting that allows tracking of progress of a CI step/task as it executes. |
There was a problem hiding this comment.
I'd say it has the own format additionaly to the stadard ones like xUnit/jUnit
| The main benefit of using this API is it's simplicity. | ||
| One-line call is enough to execute a set of tests form one or multiple schemes. | ||
|
|
||
| The **procedures** execute specified tests and produces outputs to DBMS_OUTPUT suing specified reporter |
| end; | ||
| ``` | ||
|
|
||
| Execute all tests from all packages that are on the _COM.MY_ORG.MY_PROJECT_ suitepath. |
There was a problem hiding this comment.
I propose to restructure the doc a bit. I believe we should treat suitepath as the prefered way to configure runs, so the examples should first demonstrate that approach. Calling by a package name is a convinient addition.
| select * from table(ut.run('hr.test_apply_bonus', ut_xunit_reporter())); | ||
| ``` | ||
|
|
||
| # ut_runner.run |
There was a problem hiding this comment.
I think you should mention again that the easiest way to invoke ut_runner is to call it with ut_run.sql
| @@ -14,66 +14,213 @@ Expectation is a set of the expected value(s), actual values(s) and the matcher( | |||
|
|
|||
| Matcher is defining the comparison operation to be performed on expected and actual values. | |||
There was a problem hiding this comment.
Do you think we can put the definition, matcher and example into a single table? I think it's going to be way shorter maybe even fit into a single screen
No description provided.