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

panic-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

panic-client

Test client for panic-server

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
decreased by-96.95%
Maintainers
1
Weekly downloads
 
Created
Source

Panic Client

This is meant to be used alongside panic-server.

What it is

Panic is a distributed test framework built for gunDB to test end-to-end functionality, such as client/client interactions. Other E2E test frameworks focus more on a single browser. While valuable, collaborative apps are nearly impossible to test. For example:

browsers A and B connect to server C
browser A performs action and is done
server C sees action and is done
browser B sees action and is done

3 cases finished, no failures. Next test.

So while many test frameworks will focus on one of those peers, no test framework includes them all. This is a true end-to-end framework, and without it, real-time data sync has been a nightmare to test against.

Usage

Warning: panic is still under development.

Download panic-server, that's where the tests are written. To connect to the panic dispatcher, first include the panic src:

npm install PsychoLlama/panic-client

Browser:

<script src="panic.js"></script>
<!-- this will expose the "panic" global -->

Node.js:

var panic = require('panic-client');

Now all that's left is connecting to the panic server:

// panic will default to this address
panic.server('http://localhost:8080')

The tests should begin automatically.

Reference

  • TDO - Test Description Object
    • Description
    • Id
    • Configuration object
      • an environment object
      • callbacks and conditionals

Keywords

FAQs

Package last updated on 01 Apr 2016

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