New Mocha test file for Node.js 6, since newer tests use async/await

This commit is contained in:
Christopher Jones 2018-09-26 18:13:42 +10:00
parent 261bae103e
commit 36d104350f
5 changed files with 205 additions and 2 deletions

View File

@ -37,6 +37,7 @@
"async": "^1.5.0"
},
"scripts": {
"testv6": "mocha --opts test/opts/mochaNodeV6.opts",
"test": "mocha --opts test/opts/mocha.opts",
"posttest": "node test/opts/version.js"
},

View File

@ -35,6 +35,7 @@
},
"scripts": {
"install": "node package/oracledbinstall.js",
"testv6": "mocha --opts test/opts/mochaNodeV6.opts",
"test": "mocha --opts test/opts/mocha.opts",
"posttest": "node test/opts/version.js"
},

9
test/notes.js Normal file
View File

@ -0,0 +1,9 @@
const nodeVersion = process.versions.modules;
if (nodeVersion < 57) {
console.log("\n\n");
console.log("**************************************************************");
console.log("For Node.js v6, please run tests with command `npm run testv6`");
console.log("**************************************************************");
console.log("\n\n\n");
}

View File

@ -1,9 +1,10 @@
--require should
--require async
--reporter spec
--reporter dot
--ui bdd
--timeout 1000000
test/notes.js
test/connection.js
test/pool.js
test/examples.js
@ -190,4 +191,4 @@ test/changePassword.js
test/getStmtInfo.js
test/executeMany.js
test/poolDrain.js
test/poolDrain.js

191
test/opts/mochaNodeV6.opts Executable file
View File

@ -0,0 +1,191 @@
--require should
--require async
--reporter dot
--ui bdd
--timeout 1000000
test/connection.js
test/pool.js
test/examples.js
test/binding.js
test/externalAuth.js
test/dmlReturning.js
test/autoCommit.js
test/autoCommitForSelect.js
test/columnMetadata.js
test/nullColumnValues.js
test/resultSet1.js
test/stream1.js
test/stream2.js
test/resultsetToStream.js
test/promises.js
test/extendedMetaData.js
test/constants.js
test/fetchTimestampAsString.js
test/dataTypeAssist.js
test/dataTypeChar.js
test/dataTypeNchar.js
test/dataTypeVarchar2.js
test/dataTypeNvarchar2.js
test/dataTypeNumber.js
test/dataTypeNumber2.js
test/dataTypeFloat.js
test/dataTypeFloat2.js
test/dataTypeBinaryFloat.js
test/dataTypeBinaryDouble.js
test/dataTypeDate.js
test/dataTypeTimestamp1.js
test/dataTypeTimestamp2.js
test/dataTypeTimestamp3.js
test/dataTypeTimestamp4.js
test/dataTypeTimestamp5.js
test/dataTypeTimestamp6.js
test/dataTypeRowid.js
test/dataTypeClob.js
test/dataTypeBlob.js
test/dataTypeRaw.js
test/plsqlBindIndexedTable1.js
test/plsqlBindIndexedTable2.js
test/instanceof.js
test/poolClose.js
test/connClose.js
test/resultSetClose.js
test/lobClose.js
test/resultSet2.js
test/fetchAs.js
test/nestedCursor.js
test/properties.js
test/lobResultSet.js
test/clobPlsqlString.js
test/checkClassesTypes.js
test/lobProperties1.js
test/autoCommit4nestedExecutes.js
test/sqlWithWarnings.js
test/uninitializedLob.js
test/writableProperties.js
test/poolCache.js
test/multipleLobInsertion.js
test/driverName.js
test/plsqlBindScalar.js
test/lobBind1.js
test/lobBind2.js
test/poolPing.js
test/clobPlsqlBindAsString_bindin.js
test/clobPlsqlBindAsString_bindout.js
test/clobPlsqlBindAsString_bindinout.js
test/blobPlsqlBindAsBuffer_bindin.js
test/blobPlsqlBindAsBuffer_bindout.js
test/blobPlsqlBindAsBuffer_bindinout.js
test/lobBindAsStringBuffer.js
test/clobDMLBindAsString.js
test/blobDMLBindAsBuffer.js
test/lobProperties2.js
test/fetchClobAsString1.js
test/fetchClobAsString2.js
test/fetchClobAsString3.js
test/fetchBlobAsBuffer1.js
test/fetchBlobAsBuffer2.js
test/fetchBlobAsBuffer3.js
test/fetchClobAsString4.js
test/fetchBlobAsBuffer4.js
test/binding_DMLInsert.js
test/binding_procedureBindIn.js
test/binding_procedureBindInout.js
test/binding_functionBindInout.js
test/binding_procedureBindOut.js
test/binding_functionBindOut.js
test/binding_DMLReturningInto.js
test/binding_functionBindIn.js
test/binding_defaultBindIn.js
test/binding_defaultBindInout.js
test/bindTimestamp.js
test/dataTypeLong.js
test/dataTypeLongRaw.js
test/streamErrorEvent.js
test/fetchRowidAsString.js
test/rowidDMLBindAsString.js
test/rowidProcedureBindAsString_bindin.js
test/rowidFunctionBindAsString_bind.js
test/rowidProcedureBindAsString_bindout.js
test/rowidProcedureBindAsString_bindinout.js
test/rowidFunctionBindAsString_bindinout.js
test/dataTypeUrowid.js
test/urowidDMLBindAsString1.js
test/urowidDMLBindAsString2.js
test/fetchUrowidAsString.js
test/urowidProcedureBindAsString1.js
test/urowidProcedureBindAsString2.js
test/urowidProcedureBindAsString3.js
test/urowidFunctionBindAsString1.js
test/urowidFunctionBindAsString2.js
test/dataTypeNclob.js
test/nclobDMLBindAsString.js
test/longDMLBind.js
test/longrawDMLBind.js
test/blobStream.js
test/clobStream.js
test/longProcedureBind_inout.js
test/longProcedureBind_out.js
test/longProcedureBind_in.js
test/longrawProcedureBind_in.js
test/longrawProcedureBind_inout.js
test/longrawProcedureBind_out.js
test/clobDMLReturningMultipleRowsAsStream.js
test/clobDMLReturningMultipleRowsAsString.js
test/blobDMLReturningMultipleRowsAsBuffer.js
test/blobDMLReturningMultipleRowsAsStream.js
test/fetchAsStringWithRefCursor.js
test/v8Getter.js
test/insertNaNToNumber.js
test/urowidFunctionBindAsString3.js
test/urowidFunctionBindAsString4.js
test/urowidProcedureBindAsString4.js
test/urowidProcedureBindAsString5.js
test/urowidProcedureBindAsString6.js
test/prefetchRows.js
test/fetchArraySize1.js
test/fetchArraySize2.js
test/fetchArraySize3.js
test/fetchArraySize4.js
test/fetchArraySize5.js
test/fetchArraySize6.js
test/fetchArraySize7.js
test/fetchArraySize8.js
test/fetchArraySize9.js
test/maxRows.js
test/insertAll.js
test/end2endTracing.js
test/editionTest.js
test/changePassword.js
test/getStmtInfo.js
test/executeMany.js