5.0.0 • Published 7 years ago

ilp-plugin-tests v5.0.0

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
7 years ago

Ilp-Plugin Tests npm

A test suite for ILP LedgerPlugins, to make sure they conform to the javascript LedgerPlugin interface.

Usage

To use Ilp-Plugin Tests, just write a module that exports the plugin constructor (as .plugin), a list of 2 options objects (as .opts), and a timeout for payments to go through (as .timeout). This list of options should contain options in the form:

{
  // plugin options here, for constructor
  'pluginOptions': {
    'auth': {
      'account': 'bob',
      ...
    }
  },
  // options for transfers, added to transfers
  'transfer': {
    'account': 'alice',
    ... 
  }
}

The file ./configs/virtual.js contains an example set of options. For example, to test ilp-plugin-virtual, you could run:

npm install ilp-plugin-virtual
ILP_PLUGIN_TEST_CONFIG='./configs/virtual.js' npm test
5.0.0

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago