Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swarm-bat

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swarm-bat

BAT - beat the bugs out of your apps ==================================== Stream-based [blackbox testing][bbt] toolkit.

  • 0.4.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

BAT - beat the bugs out of your apps

Stream-based blackbox testing toolkit.

BAT feeds the prescribed input into a stream, then listens to the output and compares it to the expected value. The package features:

  • loopback stream implementation to test everything stream-based (BatStream),
  • dummy server implementation to test server behavior (BatServer),
  • stream multiplexer to emulate multiple clients (BatMux),
  • and a tester that feeds input into a stream, then compares the response to the expected value (StreamTest).

see test/ for usage examples.

The package registers loopback stream and server to the stream-url package under the protocol name 'loopback'. Also, BatMux reads stream URLs from the input to initiate arbitrary outgoing streams using stream-url. So, the way to test a TCP server in a multiple client configuration is:

[StreamTest] <-trunk-stream-> [BatMux] <-tcp-stream1-> TCP Server
                                       <-tcp-stream2->

FAQs

Package last updated on 10 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc