Skip to content

Commit a8b69f0

Browse files
committed
Update tests for new functionality
1 parent 1042166 commit a8b69f0

20 files changed

+3402
-610
lines changed

test/README.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,21 @@ Note: these are listed in `devDependencies` in `package.json` so `npm
5858
install` will install them when executed inside a node-oracledb
5959
package directory.
6060

61-
### 4. Edit database credentials
61+
### 4. Database credentials
62+
63+
The database credentials for node-oracledb test suite are defined in dbConfig.js file. You can set the credentials via environment variables or dbConfig.js file.
64+
Change the credentials to a user who has privileges to connect and create tables.
6265

6366
```
6467
vi <some-directory>/node_modules/oracledb/test/dbConfig.js
6568
```
6669

67-
Change the credentials to a user who has privileges to connect and create tables:
68-
6970
```javascript
7071
module.exports = {
71-
user : "hr",
72-
password : "welcome",
73-
connectString : "localhost/orcl",
74-
externalAuth : false
72+
user : process.env.NODE_ORACLEDB_USER || "hr",
73+
password : process.env.NODE_ORACLEDB_PASSWORD || "welcome",
74+
connectString : process.env.NODE_ORACLEDB_CONNECTIONSTRING || "localhost/orcl",
75+
externalAuth : process.env.NODE_ORACLEDB_EXTERNALAUTH ? true : false
7576
};
7677
```
7778

@@ -113,3 +114,7 @@ assigned a number. The following number ranges have been chosen:
113114
- 1 - 20 are reserved for basic functional tests
114115
- 21 - 50 are reserved for data type supporting tests
115116
- 51 onwards are for other tests
117+
118+
## Test List
119+
120+
See test/list.txt file for the list of existing tests.

0 commit comments

Comments
 (0)