Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

convert tests into an abstract test suite module that other levelups can use #273

@max-mapper

Description

@max-mapper

It would be really useful for us over at http://github.com/maxogden/dat to be able to e.g. require('abstract-levelup/tests') in the same way that there is an abstract-leveldown test suite.

Publishing a test suite as a module lets multiple modules all ensure compatibility since they use the same test suite. For example, level.js uses abstract-leveldown, and so does memdown and leveldown and others.

I liked @rvagg's idea of a test suite as a module so much that I copied the concept but for file storage: https://github.com/maxogden/abstract-blob-store

However, the levelup tests aren't a module yet. Someone needs to do the heroic task of converting the tests to use the tape API and make the tests require()-able

Metadata

Metadata

Assignees

No one assigned

    Labels

    testImprovements or additions to tests

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions