@@ -22,12 +22,11 @@ for relevant licenses.
2222## 1. Preparations
2323
2424See [ INSTALL] ( https://oracle.github.io/node-oracledb/INSTALL.html )
25- for installation requirements and more details.
25+ for installation details.
2626
2727Note: the
2828[ test suite] ( https://github.com/oracle/node-oracledb/tree/master/test )
29- is in GitHub. From node-oracledb 1.9.1 it is not included when
30- installing from npmjs.com with ` npm install oracledb ` .
29+ is on GitHub. NPM module has not contained the tests since node-oracledb 1.9.1.
3130
3231### 1.1 Create a working directory
3332
@@ -63,27 +62,10 @@ The test suite uses [mocha](https://www.npmjs.com/package/mocha),
6362
6463### 1.4 Configure Database credentials
6564
66- The database credentials for node-oracledb test suite are defined in ` dbconfig.js ` .
67- They can also be set via environment variables shown in that file.
65+ The file ` test\dbconfig.js ` contains the configuration. Change the credential information to yours.
6866
69-
70- ```
71- vi <some-directory>/node-oracledb/test/dbconfig.js
72- ```
73-
74- ``` javascript
75- module .exports = {
76- user : process .env .NODE_ORACLEDB_USER || " hr" ,
77- password : process .env .NODE_ORACLEDB_PASSWORD || " welcome" ,
78- connectString : process .env .NODE_ORACLEDB_CONNECTIONSTRING || " localhost/orcl"
79- };
80- ```
81-
82- To enable external authentication tests, please make sure Oracle Database
83- and the authentication service have been appropriately configured. See
84- [ Documentation for External Authentication] ( https://oracle.github.io/node-oracledb/doc/api.html#extauth )
85- for more details. And then, set the environment variable ` NODE_ORACLEDB_EXTERNALAUTH `
86- to be ` true ` .
67+ To enable external authentication tests, firstly make sure the Oracle external authentication service is correctly configured.
68+ See [ Documentation for External Authentication] ( https://oracle.github.io/node-oracledb/doc/api.html#extauth ) for details.
8769
8870Note: the test suite requires a schema with privileges CREATE TABLE, CREATE SESSION,
8971CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER.
@@ -124,22 +106,14 @@ shows the numbering of tests.
124106In order to include your tests in the suite, add each new test file
125107name to [ ` test/opts/mocha.opts ` ] ( https://github.com/oracle/node-oracledb/blob/master/test/opts/mocha.opts ) .
126108
127- ## 4. Compatibility
128-
129- We basically test with the following environment options:
130-
131- - Oracle Instant Clients: 11.2.0.4, 12.1.0.2, 12.2.0.1
132- - Operating Systems (X64): macOS, Linux, Windows
133- - Node.js LTS versions
134-
135- ## 5. Troubleshooting
109+ ## 4. Troubleshooting
136110
137111You may encounter some troubles when running the test suite. These troubles
138112might be caused by the concurrency issue of Mocha framework, network latencies,
139113or database server issues. This section gives some issues that we ever saw
140114and our solutions.
141115
142- ### 5 .1 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
116+ ### 4 .1 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
143117
144118This error occurs when Node.js programs try to change database objects which
145119hold locks. The workaround would be:
@@ -149,7 +123,7 @@ test files.
149123(2) Try not to use 'beforeEach' blocks for object operations to avoid
150124the interference between cases.
151125
152- ### 5 .2 ORA-00018: maximum number of sessions exceeded
126+ ### 4 .2 ORA-00018: maximum number of sessions exceeded
153127
154128This error occurs when the test suite takes up more sessions than the
155129configured limit. You can alter the session limit on the database server side.
166140done
167141```
168142
169- ### 5 .3 ORA-28865: SSL connection closed
143+ ### 4 .3 ORA-28865: SSL connection closed
170144
171145You may encounter this error when the test suite sends more connection
172146requests per second than the database is configured to handle.
0 commit comments