Skip to content

Commit

Permalink
Update index.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
angoca committed Feb 10, 2020
1 parent 0662bfa commit 5b6f733
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions src/site/xdoc/index.xml
Expand Up @@ -18,17 +18,21 @@
<div id="main-carousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div style="height:20em">
<div style="height:25em">
<pre class="prettyprint">
<![CDATA[
CREATE OR REPLACE PROCEDURE ONE_TIME_SETUP()
... @
-- Your code...
@
CREATE OR REPLACE PROCEDURE SETUP()
... @
-- Your code...
@
CREATE OR REPLACE PROCEDURE TEAR_DOWN()
... @
-- Your code...
@
CREATE OR REPLACE PROCEDURE ONE_TIME_TEAR_DOWN()
... @
-- Your code...
@
Expand All @@ -47,26 +51,24 @@
<div style="height:20em">
<pre class="prettyprint">
<![CDATA[
CREATE OR REPLACE PROCEDURE TEST_MY_TEST()
CREATE OR REPLACE PROCEDURE MYSCHEMA.TEST_MY_TEST()
BEGIN
DECLARE EXPECTED INTEGER;
DECLARE ACTUAL INTEGER;
CALL DB2UNIT.REGISTER_MESSAGE('My first test');
...
-- Your code ...
SET EXPECTED = 2;
SET ACTUAL = ...;
SET ACTUAL = 1+1;
CALL DB2UNIT.ASSERT_INT_EQUALS('Same value', EXPECTED, ACTUAL);
END @
]]>
</pre>
</div>
<div class="carousel-caption">
<p>
<strong>Suite name is the schema</strong>
</p>
<p>Execute a test suite by calling RUN_SUITE and providing the
schema name.
<strong>Definition of tests</strong>
</p>
<p>Procedures with TEST_ prefix are part of the same Tests Suite.</p>
</div>
</div>
<div class="item">
Expand All @@ -90,10 +92,9 @@
</div>
<div class="carousel-caption">
<p>
<strong>Suite name is the schema</strong>
<strong>Results of a execution</strong>
</p>
<p>Execute a test suite by calling RUN_SUITE and providing the
schema name.
<p>Execute a Tests Suite by calling RUN_SUITE and providing the schema name.
</p>
</div>
</div>
Expand All @@ -108,13 +109,13 @@
<section name="Description">
<p>
This is a testing framework for IBM Db2 written in SQL PL
language. It is
language. It is a
<a href="https://en.wikipedia.org/wiki/XUnit">xUnit</a>
framework, that takes the same design as the
well-known
<a href="http://junit.org/">jUnit.</a>
The framework could be considered as a jUnit porting for
Db2 SQL-PL.
Db2's SQL-PL.
</p>
</section>
<section name="Resources">
Expand All @@ -125,11 +126,14 @@
<b>Welcome</b>
</p>
<ul>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Getting-started">Getting started in 5 minutes</a>
</li>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Install">Download and install</a>
</li>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Usage">Getting started</a>
<a href="https://github.com/angoca/db2unit/wiki/Usage">Usage</a>
</li>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Change-log">Change log</a>
Expand Down Expand Up @@ -171,7 +175,7 @@
<a href="https://github.com/angoca/db2unit/wiki/Architecture">Architecture</a>
</li>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Examples">Example</a>
<a href="https://github.com/angoca/db2unit/wiki/Examples">Examples</a>
</li>
<li>
<a href="https://github.com/angoca/db2unit/wiki/Custom-assert">Custom assertions</a>
Expand Down

0 comments on commit 5b6f733

Please sign in to comment.