Skip to content

Commit c96a4bf

Browse files
committed
Completed Package Test Example
1 parent 1b68dd7 commit c96a4bf

File tree

6 files changed

+346
-41
lines changed

6 files changed

+346
-41
lines changed

docs/Other-Definitions.md renamed to docs/Definitions.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
[Website Home Page](README.md)
22

3-
# Other Definitions
3+
# Definitions
4+
5+
---
6+
## wtPLSQL Definitions
7+
8+
These are the working definitions for the wtPLSQL project.
9+
10+
**Annotation** - PL/SQL comment used to identify a DBOUT or ignore source code lines from code coverage data.
11+
12+
**Assertion** - A function that performs a single test and records/reports the result.
13+
14+
**Coverage** - An indication of the amount or percentage of source code tested.
15+
16+
**DBOUT** - Database Object Under Test. The database object that is the target of testing. White-box testing is oriented toward a specific DBOUT. Code coverage is also oriented toward a specific DBOUT.
17+
18+
**Setup** - Modifying the database or environment in preparation for an assertion, testcase, or group of either.
19+
20+
**Teardown** - Restoring a database or environment after an assertion, testcase, or group of either.
21+
22+
**Testcase** - A logical grouping of assertions to run happy path, decision tree, boundary condition, and/or fault insertion tests. May included one or more setup, teardown, and intermediate setups.
23+
24+
**Test Runner** - A PL/SQL package that exercises a DBOUT and uses assertions to confirm the correct funcionality of the DBOUT. It may have zero or more testcases. It always contains a call to the WTPLSQL.TEST_RUN procedure. It may contain DBOUT annotations and "ignore source lines" annotations.
425

526
---
627
## Oracle Database
@@ -10,7 +31,7 @@ Note: Some Oracle database terms overlap with Object Oriented terms.
1031

1132
**Schema** - Database owner of a database object.
1233

13-
***
34+
---
1435
## XUnit
1536
These definitions were taken from [Xunit at Wikipedia](https://en.wikipedia.org/wiki/XUnit). They include minor editing for clarification.
1637

@@ -33,7 +54,7 @@ The setup and teardown serve to initialize and clean up test fixtures.
3354

3455
**Assertions** - A function or macro that verifies the behavior (or the state) of the unit under test. Usually an assertion expresses a logical condition that is true for results expected in a correctly running system under test (SUT). Failure of an assertion typically throws an exception, aborting the execution of the current test.
3556

36-
***
57+
---
3758
## JUnit
3859
These definitions were taken from the [JUnit Team at GitHub](https://github.com/junit-team/junit/wiki)
3960

@@ -47,7 +68,7 @@ These definitions were taken from the [JUnit Team at GitHub](https://github.com/
4768

4869
**Test Fixture** - A test fixture is a fixed state of a set of objects used as a baseline for running tests. The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are run so that results are repeatable.
4970

50-
***
71+
---
5172
## JUnit XML For Jenkins
5273
These definitions are based around the JUnit XML for Jenkins requirement. There is some translating required as the Oracle database is relational, not object oriented. Additionally, the Jenkins XML specification has some nuances that are not obvious.
5374

@@ -63,7 +84,7 @@ These definitions are based around the JUnit XML for Jenkins requirement. There
6384

6485
**TestSuite** - Collection of TestCases.
6586

66-
***
87+
---
6788
## Java
6889
These Java definitions are provided for reference
6990

docs/README.md

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Use [GitHub "issues"](https://github.com/DDieterich/wtPLSQL/issues) for support.
99

1010
## Example wtPLSQL Test Results
1111

12-
This is the summary from the WT_ASSERT package self-test. This is the default DBMS_OUTPUT format. Because test results and code coverage is stored in Oracle tables, other report formats a simple to create.
12+
This is the summary from the WT_ASSERT package self-test. It was created with the default DBMS_OUTPUT reporting package. Because test results and code coverage is stored in Oracle tables, other report formats are simple to create.
1313

1414
```
1515
wtPLSQL 1.1.0 - Run ID 7: 09-Jun-2018 11:48:42 AM
@@ -30,11 +30,7 @@ This is the summary from the WT_ASSERT package self-test. This is the default D
3030
Trigger Source Offset: 0
3131
```
3232

33-
To view the complete test results from the wtPLSQL self-test, go to the [test_allO.LST](https://github.com/DDieterich/wtPLSQL/blob/master/src/core/test_allO.LST) file in GitHub.
34-
35-
## Demonstrations and Examples
36-
37-
[Under Construction](demo/README.md)
33+
To view the complete test results from the wtPLSQL self-test, go to the [test_allO.LST](https://github.com/DDieterich/wtPLSQL/blob/master/src/core/test_allO.LST) file in GitHub. The [Demonstrations and Examples Page](demo/README.md) has more examples.
3834

3935
## What is wtPLSQL?
4036

@@ -48,27 +44,7 @@ Because all testing with wtPLSQL is for driven by custom PL/SQL packages, a [Bes
4844

4945
The [About wtPLSQL page](About-wtPLSQL.md) has more information about the history and testing methodology of wtPLSQL.
5046

51-
## wtPLSQL Definitions
52-
53-
These are the working definitions for the wtPLSQL project.
54-
55-
**Annotation** - PL/SQL comment used to identify a DBOUT or ignore source code lines from code coverage data.
56-
57-
**Assertion** - A function that performs a single test and records/reports the result.
58-
59-
**Coverage** - An indication of the amount or percentage of source code tested.
60-
61-
**DBOUT** - Database Object Under Test. The database object that is the target of testing. White-box testing is oriented toward a specific DBOUT. Code coverage is also oriented toward a specific DBOUT.
62-
63-
**Setup** - Modifying the database or environment in preparation for an assertion, testcase, or group of either.
64-
65-
**Teardown** - Restoring a database or environment after an assertion, testcase, or group of either.
66-
67-
**Testcase** - A logical grouping of assertions to run happy path, decision tree, boundary condition, and/or fault insertion tests. May included one or more setup, teardown, and intermediate setups.
68-
69-
**Test Runner** - A PL/SQL package that exercises a DBOUT and uses assertions to confirm the correct funcionality of the DBOUT. It may have zero or more testcases. It always contains a call to the WTPLSQL.TEST_RUN procedure. It may contain DBOUT annotations and "ignore source lines" annotations.
70-
71-
The [Other Definitions page](Other-Definitions.md) includes definitions from many sources to help define the terms used in various software testing methodologies.
47+
The [Definitions page](Definitions.md) includes definitions from many sources to help define the terms used in various software testing methodologies.
7248

7349
## How does wtPLSQL compare to utPLSQL V3?
7450

@@ -84,19 +60,23 @@ The goal of wtPLSQL has been to implement the basic/core functionality of utPLSQ
8460

8561
More information is available [in this link](utPLSQL-V2-Comparison).
8662

87-
### Site Map
63+
### Site Links
8864

89-
* [Core Features](Core-Features.md)
90-
* [About wtPLSQL](About-wtPLSQL.md)
91-
* [Best Practices](Best-Practices.md)
92-
* [Other Definitions](Other-Definitions.md)
93-
* [utPLSQL V3 Comparison](utPLSQL-V3-Comparison)
94-
* [utPLSQL V1/V2 Comparison](utPLSQL-V2-Comparison)
65+
User Help
66+
* [Demonstrations and Examples Page](demo/README.md)
9567
* [Reference](Reference.md)
68+
* [Best Practices](Best-Practices.md)
9669
* [Latest wtPSQL DB Docs](core/DBDocs/index.html)
9770
* [ER Diagram PDF](core/ER_Diagrams.pdf)
9871
* [Call Tree Diagrams PDF](core/Call_Tree_Diagrams.pdf)
9972

73+
Background
74+
* [Definitions](Definitions.md)
75+
* [About wtPLSQL](About-wtPLSQL.md)
76+
* [Core Features](Core-Features.md)
77+
* [utPLSQL V3 Comparison](utPLSQL-V3-Comparison)
78+
* [utPLSQL V1/V2 Comparison](utPLSQL-V2-Comparison)
79+
10080
## Contribute
10181

10282
Help us improve by joining us at the [wtPLSQL repository](https://github.com/DDieterich/wtPLSQL).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy