diff --git a/package.json b/package.json index 7de9ff2f..aa5d0663 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/package/package.json b/package/package.json index 82f9fea0..0b1d4dea 100644 --- a/package/package.json +++ b/package/package.json @@ -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" }, diff --git a/test/notes.js b/test/notes.js new file mode 100644 index 00000000..b3b42f5e --- /dev/null +++ b/test/notes.js @@ -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"); +} diff --git a/test/opts/mocha.opts b/test/opts/mocha.opts index 0f528a19..96527bee 100644 --- a/test/opts/mocha.opts +++ b/test/opts/mocha.opts @@ -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 \ No newline at end of file +test/poolDrain.js diff --git a/test/opts/mochaNodeV6.opts b/test/opts/mochaNodeV6.opts new file mode 100755 index 00000000..cef0bdef --- /dev/null +++ b/test/opts/mochaNodeV6.opts @@ -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