This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Export test suite * Make test suite work on a db without encoding-down * Temporarily pipe airtap output to file
- Loading branch information
Showing
11 changed files
with
181 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ libpeerconnection.log | |
yarn.lock | ||
package-lock.json | ||
.nyc_output/ | ||
airtap.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ test | |
.travis.yml | ||
.dntrc | ||
.nyc_output/ | ||
airtap.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,32 @@ | ||
// Promise polyfill for IE and others. | ||
if (process.browser && typeof Promise !== 'function') { | ||
global.Promise = require('pinkie') | ||
} | ||
|
||
var test = require('tape') | ||
var memdown = require('memdown') | ||
var encode = require('encoding-down') | ||
var levelup = require('../lib/levelup') | ||
'use strict' | ||
|
||
var testCommon = require('./common')({ | ||
test: test, | ||
factory: function (options) { | ||
return levelup(encode(memdown(), options)) | ||
}, | ||
clear: true, | ||
deferredOpen: true, | ||
promises: true, | ||
streams: true, | ||
encodings: true | ||
}) | ||
var common = require('./common') | ||
|
||
require('./argument-checking-test')(test, testCommon) | ||
require('./batch-test')(test, testCommon) | ||
if (testCommon.encodings) require('./binary-test')(test, testCommon) | ||
if (testCommon.clear) require('./clear-test')(test) | ||
if (testCommon.snapshots) require('./create-stream-vs-put-racecondition')(test, testCommon) | ||
if (testCommon.deferredOpen) require('./deferred-open-test')(test, testCommon) | ||
require('./get-put-del-test')(test, testCommon) | ||
require('./idempotent-test')(test, testCommon) | ||
require('./init-test')(test, testCommon) | ||
if (testCommon.encodings) require('./custom-encoding-test')(test, testCommon) | ||
if (testCommon.encodings) require('./json-encoding-test')(test, testCommon) | ||
if (testCommon.streams) require('./key-value-streams-test')(test, testCommon) | ||
require('./maybe-error-test')(test, testCommon) | ||
require('./no-encoding-test')(test, testCommon) | ||
require('./null-and-undefined-test')(test, testCommon) | ||
if (testCommon.deferredOpen) require('./open-patchsafe-test')(test, testCommon) | ||
if (testCommon.streams) require('./read-stream-test')(test, testCommon) | ||
if (testCommon.snapshots) require('./snapshot-test')(test, testCommon) | ||
require('./iterator-test')(test, testCommon) | ||
if (testCommon.seek) require('./iterator-seek-test')(test, testCommon) | ||
function suite (options) { | ||
var testCommon = common(options) | ||
var test = testCommon.test | ||
|
||
if (!process.browser) { | ||
require('./browserify-test')(test) | ||
require('./argument-checking-test')(test, testCommon) | ||
require('./batch-test')(test, testCommon) | ||
if (testCommon.encodings) require('./binary-test')(test, testCommon) | ||
if (testCommon.clear) require('./clear-test')(test) | ||
if (testCommon.snapshots) require('./create-stream-vs-put-racecondition')(test, testCommon) | ||
if (testCommon.deferredOpen) require('./deferred-open-test')(test, testCommon) | ||
require('./get-put-del-test')(test, testCommon) | ||
require('./idempotent-test')(test, testCommon) | ||
require('./init-test')(test, testCommon) | ||
if (testCommon.encodings) require('./custom-encoding-test')(test, testCommon) | ||
if (testCommon.encodings) require('./json-encoding-test')(test, testCommon) | ||
if (testCommon.streams) require('./key-value-streams-test')(test, testCommon) | ||
require('./maybe-error-test')(test, testCommon) | ||
require('./no-encoding-test')(test, testCommon) | ||
require('./null-and-undefined-test')(test, testCommon) | ||
if (testCommon.deferredOpen) require('./open-patchsafe-test')(test, testCommon) | ||
if (testCommon.streams) require('./read-stream-test')(test, testCommon) | ||
if (testCommon.snapshots && testCommon.streams) require('./snapshot-test')(test, testCommon) | ||
require('./iterator-test')(test, testCommon) | ||
if (testCommon.seek) require('./iterator-seek-test')(test, testCommon) | ||
} | ||
|
||
suite.common = common | ||
module.exports = suite |
Oops, something went wrong.