Skip to content

Interoperability tests for libp2p Implementations

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

libp2p/interop

Repository files navigation

libp2p.ioDiscusscodecovCI

Interoperability Tests for libp2p

About

This repository holds interop tests for testing compatibility between different libp2p implementations.

Example - How to run the tests

Create a js file that configures the different types of daemon:

import{interopTests}from'@libp2p/interop'importtype{Daemon,DaemonFactory}from'@libp2p/interop' async functioncreateGoPeer(options: SpawnOptions): Promise<Daemon>{// your implementation here} async functioncreateJsPeer(options: SpawnOptions): Promise<Daemon>{// your implementation here}asyncfunctionmain(){constfactory: DaemonFactory={asyncspawn(options: SpawnOptions){if(options.type==='go'){returncreateGoPeer(options)}returncreateJsPeer(options)}}interopTests(factory)}main().catch(err=>{console.error(err)process.exit(1)})

For an example, see the js-libp2p interop test runner.

Install

$ npm i @libp2p/interop

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Interoperability tests for libp2p Implementations

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 17