Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 093d3aa

Browse files
committed
Merge branch 'develop' into feature/update_readme
# Conflicts: # readme.md
2 parents dac1780 + 81c6ada commit 093d3aa

24 files changed

Lines changed: 98 additions & 20 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66
.idea/
77
site/
88
pages/
9+
release/
10+
*.gz
11+
*.zip

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,23 @@ script:
5858
- bash .travis/run_examples_as_owner.sh
5959
- bash .travis/run_test_as_owner.sh
6060
- bash .travis/run_examples_as_user.sh
61+
- bash .travis/create_release.sh
6162
# - bash .travis/run_test_as_user.sh
6263
# - bash .travis/build_docs.sh
6364
# - bash .travis/push_docs_to_gh_pages.sh
6465

66+
deploy:
67+
provider: releases
68+
api_key: $github_api_token
69+
file:
70+
- utPLSQL$TRAVIS_TAG.zip
71+
- utPLSQL$TRAVIS_TAG.tar.gz
72+
skip_cleanup: true
73+
on:
74+
repo: utPLSQL/utPLSQL
75+
tags: true
76+
6577
notifications:
6678
slack: utplsql:oiMuXO95TvKeAUENuDt4cPrB
6779

80+

.travis/build_docs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
#!/bin/bash
2+
# Change working directory to script directory
3+
cd "${0%/*}"
4+
# Change back to root
5+
cd ..
26
mkdocs build --clean --strict

.travis/create_release.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Change working directory to script directory
3+
cd "${0%/*}"
4+
chmod +x ./build_docs.sh
5+
chmod +x ./create_release_archive.sh
6+
./build_docs.sh
7+
./create_release_archive.sh

.travis/create_release_archive.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
# Change working directory to script directory
3+
cd "${0%/*}"
4+
# Change back to root
5+
cd ..
6+
# Remove old release directory (Typically only on developer machine)
7+
rm -rf release
8+
# Create needed directories
9+
mkdir -p release/docs/html
10+
mkdir release/docs/markdown
11+
mkdir release/source
12+
# Copy files to various directories
13+
cp -r docs release/docs/markdown
14+
cp -r site release/docs/html
15+
cp -r source release/source
16+
cp -r examples release/examples
17+
cp -r readme.md release/
18+
cp -r LICENSE release/
19+
cp -r authors.md release/
20+
cp -r CONTRIBUTING.md release/
21+
cd release
22+
#Although the $TRAVIS_TAG versions are the only one used. They are conditional,
23+
#and we want the process always run to insure we don't have problems with building archive
24+
#when we finally tag a release
25+
zip -r ../utPLSQL.zip *
26+
tar -zcvf ../utPLSQL.tar.gz *
27+
#Name of archive will match tag name for a release.
28+
if [ -n "$TRAVIS_TAG" ]; then
29+
cd ..
30+
cp utPLSQL.zip utPLSQL$TRAVIS_TAG.zip
31+
cp utPLSQL.tar.gz utPLSQL$TRAVIS_TAG.tar.gz
32+
fi

readme.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#utPLSQL v3<sub><sup> | Powerful PL/SQL Unit Testing Framework </sup></sub>
2-
[![chat](http://img.shields.io/badge/version_status-pre--alpha-blue.svg)](http://utplsql-slack-invite.herokuapp.com/)
3-
[![build](https://img.shields.io/travis/utPLSQL/utPLSQL/version3.svg?label=version3%20build)](https://travis-ci.org/utPLSQL/utPLSQL)
4-
[![license](http://img.shields.io/badge/license-apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
2+
[![chat](http://img.shields.io/badge/version_status-alpha-blue.svg)](http://utplsql-slack-invite.herokuapp.com/)
3+
[![build](https://img.shields.io/travis/utPLSQL/utPLSQL/master.svg?label=master%20branch)](https://travis-ci.org/utPLSQL/utPLSQL)
4+
[![build](https://img.shields.io/travis/utPLSQL/utPLSQL/develop.svg?label=develop%20branch)](https://travis-ci.org/utPLSQL/utPLSQL)
5+
6+
[![license](http://img.shields.io/badge/license-apache%202.0-blue.svg)]
7+
(https://www.apache.org/licenses/LICENSE-2.0)
58
[![chat](http://img.shields.io/badge/chat-slack-blue.svg)](http://utplsql-slack-invite.herokuapp.com/)
69
[![twitter](https://img.shields.io/twitter/follow/utPLSQL.svg?style=social&label=Follow)](https://twitter.com/utPLSQL)
710

@@ -32,6 +35,11 @@ Primary features:
3235
Requirements:
3336
- Version of Oracle under [Extend Support](http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf) (Currently 11.2 and above)
3437

38+
__Download__
39+
40+
Published releases are available for download on the [utPLSQL GitHub Releases Page.](https://github.com/utPLSQL/utPLSQL/releases)
41+
42+
3543
__Version 2 to Version 3 Comparison__
3644

3745
The following table is a work in progress right now, and **will** change. If you have great idea that you would like to see in version 3 please create an [issue on GitHub](https://github.com/utPLSQL/utPLSQL/issues) or discuss it with us in the [Slack chat rooms](http://utplsql-slack-invite.herokuapp.com/).

source/core/types/ut_assert_result.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ create or replace type body ut_assert_result is
5959

6060
if self.result != ut_utils.tr_success then
6161
if self.actual_value_string is not null or self.actual_type is not null then
62-
l_actual_val_msg := ' expected (actual value): ';
62+
l_actual_val_msg := ' expected this: ';
6363
l_actual_val := self.actual_value_string || '(' || self.actual_type || ')';
6464
end if;
6565

66-
l_expected_msg := ' '||self.matcher_name || self.additional_info;
66+
l_expected_msg := ' ' || self.matcher_name || self.additional_info;
6767
if self.expected_value_string is not null or self.expected_type is not null then
68-
l_expected_msg := l_expected_msg || ' (expected value): ';
68+
l_expected_msg := l_expected_msg || ': ';
6969
l_expected_val := self.expected_value_string||'('||self.expected_type||')';
7070
if length(l_expected_msg) > length(l_actual_val_msg) then
7171
l_actual_val_msg := rpad(l_actual_val_msg , length(l_expected_msg));
File renamed without changes.
File renamed without changes.

source/core/ut_suite_manager.pkb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,8 @@ create or replace package body ut_suite_manager is
411411
for i in 1 .. l_paths.count loop
412412
l_path := l_paths(i);
413413
l_schema := regexp_substr(l_path, '^(\w+)(\.|:|$)', 1, 1, null, 1);
414+
415+
l_schema := sys.dbms_assert.schema_name(upper(l_schema));
414416

415417
l_schema_suites := get_schema_suites(upper(l_schema));
416418

@@ -434,6 +436,11 @@ create or replace package body ut_suite_manager is
434436
l_procedure_name := regexp_substr(l_path, '^\w+\.(\w+)(\.(\w+))?$', subexpression => 3);
435437

436438
l_temp_suite := config_package(l_schema, l_package_name);
439+
440+
if l_temp_suite is null then
441+
raise_application_error(ut_utils.gc_suite_package_not_found,'Suite package '||l_schema||'.'||l_package_name|| ' not found');
442+
end if;
443+
437444
l_path := rtrim(l_schema || ':' || l_temp_suite.path || '.' || l_procedure_name, '.');
438445
end;
439446
end if;

0 commit comments

Comments
 (0)