Skip to content

Commit 36d1043

Browse files
committed
New Mocha test file for Node.js 6, since newer tests use async/await
1 parent 261bae1 commit 36d1043

File tree

5 files changed

+205
-2
lines changed

5 files changed

+205
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"async": "^1.5.0"
3838
},
3939
"scripts": {
40+
"testv6": "mocha --opts test/opts/mochaNodeV6.opts",
4041
"test": "mocha --opts test/opts/mocha.opts",
4142
"posttest": "node test/opts/version.js"
4243
},

package/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
},
3636
"scripts": {
3737
"install": "node package/oracledbinstall.js",
38+
"testv6": "mocha --opts test/opts/mochaNodeV6.opts",
3839
"test": "mocha --opts test/opts/mocha.opts",
3940
"posttest": "node test/opts/version.js"
4041
},

test/notes.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const nodeVersion = process.versions.modules;
2+
3+
if (nodeVersion < 57) {
4+
console.log("\n\n");
5+
console.log("**************************************************************");
6+
console.log("For Node.js v6, please run tests with command `npm run testv6`");
7+
console.log("**************************************************************");
8+
console.log("\n\n\n");
9+
}

test/opts/mocha.opts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
--require should
22
--require async
3-
--reporter spec
3+
--reporter dot
44
--ui bdd
55
--timeout 1000000
66

7+
test/notes.js
78
test/connection.js
89
test/pool.js
910
test/examples.js
@@ -190,4 +191,4 @@ test/changePassword.js
190191
test/getStmtInfo.js
191192
test/executeMany.js
192193

193-
test/poolDrain.js
194+
test/poolDrain.js

test/opts/mochaNodeV6.opts

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
--require should
2+
--require async
3+
--reporter dot
4+
--ui bdd
5+
--timeout 1000000
6+
7+
test/connection.js
8+
test/pool.js
9+
test/examples.js
10+
test/binding.js
11+
test/externalAuth.js
12+
13+
test/dmlReturning.js
14+
test/autoCommit.js
15+
test/autoCommitForSelect.js
16+
test/columnMetadata.js
17+
test/nullColumnValues.js
18+
19+
test/resultSet1.js
20+
test/stream1.js
21+
test/stream2.js
22+
test/resultsetToStream.js
23+
test/promises.js
24+
25+
test/extendedMetaData.js
26+
test/constants.js
27+
test/fetchTimestampAsString.js
28+
test/dataTypeAssist.js
29+
test/dataTypeChar.js
30+
31+
test/dataTypeNchar.js
32+
test/dataTypeVarchar2.js
33+
test/dataTypeNvarchar2.js
34+
test/dataTypeNumber.js
35+
test/dataTypeNumber2.js
36+
37+
test/dataTypeFloat.js
38+
test/dataTypeFloat2.js
39+
test/dataTypeBinaryFloat.js
40+
test/dataTypeBinaryDouble.js
41+
test/dataTypeDate.js
42+
43+
test/dataTypeTimestamp1.js
44+
test/dataTypeTimestamp2.js
45+
test/dataTypeTimestamp3.js
46+
test/dataTypeTimestamp4.js
47+
test/dataTypeTimestamp5.js
48+
49+
test/dataTypeTimestamp6.js
50+
test/dataTypeRowid.js
51+
test/dataTypeClob.js
52+
test/dataTypeBlob.js
53+
test/dataTypeRaw.js
54+
55+
test/plsqlBindIndexedTable1.js
56+
test/plsqlBindIndexedTable2.js
57+
test/instanceof.js
58+
test/poolClose.js
59+
test/connClose.js
60+
61+
test/resultSetClose.js
62+
test/lobClose.js
63+
test/resultSet2.js
64+
test/fetchAs.js
65+
test/nestedCursor.js
66+
67+
test/properties.js
68+
test/lobResultSet.js
69+
test/clobPlsqlString.js
70+
test/checkClassesTypes.js
71+
test/lobProperties1.js
72+
73+
test/autoCommit4nestedExecutes.js
74+
test/sqlWithWarnings.js
75+
test/uninitializedLob.js
76+
test/writableProperties.js
77+
test/poolCache.js
78+
79+
test/multipleLobInsertion.js
80+
test/driverName.js
81+
test/plsqlBindScalar.js
82+
test/lobBind1.js
83+
test/lobBind2.js
84+
85+
test/poolPing.js
86+
test/clobPlsqlBindAsString_bindin.js
87+
test/clobPlsqlBindAsString_bindout.js
88+
test/clobPlsqlBindAsString_bindinout.js
89+
test/blobPlsqlBindAsBuffer_bindin.js
90+
91+
test/blobPlsqlBindAsBuffer_bindout.js
92+
test/blobPlsqlBindAsBuffer_bindinout.js
93+
test/lobBindAsStringBuffer.js
94+
test/clobDMLBindAsString.js
95+
test/blobDMLBindAsBuffer.js
96+
97+
test/lobProperties2.js
98+
test/fetchClobAsString1.js
99+
test/fetchClobAsString2.js
100+
test/fetchClobAsString3.js
101+
test/fetchBlobAsBuffer1.js
102+
103+
test/fetchBlobAsBuffer2.js
104+
test/fetchBlobAsBuffer3.js
105+
test/fetchClobAsString4.js
106+
test/fetchBlobAsBuffer4.js
107+
test/binding_DMLInsert.js
108+
109+
test/binding_procedureBindIn.js
110+
test/binding_procedureBindInout.js
111+
test/binding_functionBindInout.js
112+
test/binding_procedureBindOut.js
113+
test/binding_functionBindOut.js
114+
115+
test/binding_DMLReturningInto.js
116+
test/binding_functionBindIn.js
117+
test/binding_defaultBindIn.js
118+
test/binding_defaultBindInout.js
119+
test/bindTimestamp.js
120+
121+
test/dataTypeLong.js
122+
test/dataTypeLongRaw.js
123+
test/streamErrorEvent.js
124+
test/fetchRowidAsString.js
125+
test/rowidDMLBindAsString.js
126+
127+
test/rowidProcedureBindAsString_bindin.js
128+
test/rowidFunctionBindAsString_bind.js
129+
test/rowidProcedureBindAsString_bindout.js
130+
test/rowidProcedureBindAsString_bindinout.js
131+
test/rowidFunctionBindAsString_bindinout.js
132+
133+
test/dataTypeUrowid.js
134+
test/urowidDMLBindAsString1.js
135+
test/urowidDMLBindAsString2.js
136+
test/fetchUrowidAsString.js
137+
test/urowidProcedureBindAsString1.js
138+
139+
test/urowidProcedureBindAsString2.js
140+
test/urowidProcedureBindAsString3.js
141+
test/urowidFunctionBindAsString1.js
142+
test/urowidFunctionBindAsString2.js
143+
test/dataTypeNclob.js
144+
145+
test/nclobDMLBindAsString.js
146+
test/longDMLBind.js
147+
test/longrawDMLBind.js
148+
test/blobStream.js
149+
test/clobStream.js
150+
151+
test/longProcedureBind_inout.js
152+
test/longProcedureBind_out.js
153+
test/longProcedureBind_in.js
154+
test/longrawProcedureBind_in.js
155+
test/longrawProcedureBind_inout.js
156+
157+
test/longrawProcedureBind_out.js
158+
test/clobDMLReturningMultipleRowsAsStream.js
159+
test/clobDMLReturningMultipleRowsAsString.js
160+
test/blobDMLReturningMultipleRowsAsBuffer.js
161+
test/blobDMLReturningMultipleRowsAsStream.js
162+
163+
test/fetchAsStringWithRefCursor.js
164+
test/v8Getter.js
165+
test/insertNaNToNumber.js
166+
test/urowidFunctionBindAsString3.js
167+
test/urowidFunctionBindAsString4.js
168+
169+
test/urowidProcedureBindAsString4.js
170+
test/urowidProcedureBindAsString5.js
171+
test/urowidProcedureBindAsString6.js
172+
test/prefetchRows.js
173+
test/fetchArraySize1.js
174+
175+
test/fetchArraySize2.js
176+
test/fetchArraySize3.js
177+
test/fetchArraySize4.js
178+
test/fetchArraySize5.js
179+
test/fetchArraySize6.js
180+
181+
test/fetchArraySize7.js
182+
test/fetchArraySize8.js
183+
test/fetchArraySize9.js
184+
test/maxRows.js
185+
test/insertAll.js
186+
187+
test/end2endTracing.js
188+
test/editionTest.js
189+
test/changePassword.js
190+
test/getStmtInfo.js
191+
test/executeMany.js

0 commit comments

Comments
 (0)