You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

prescript

Package Overview
Dependencies
11
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

prescript

Object-oriented acceptance test tool


Version published
Maintainers
2
Created

Readme

Source

prescript

prescript is a Node.js-based test runner that helps make it fun to write end-to-end/acceptance tests.

Writing functional and end-to-end tests (e.g. using Puppeteer or Selenium) with unit-testing frameworks such as Mocha can sometimes be painful, because when one step failed, you have to re-run the test from the beginning to verify that you fixed it. End-to-end tests is usually very slow compared to unit tests.

prescript solves this problem by allowing you to express your tests as multiple, discrete steps. prescript then comes with an interactive development mode, in which you can hot-reload the test script and jump between steps.

This means as you run your tests as you write it. And if you make a mistake you can fix your test, hot reload, and continue testing, without having to re-run the whole test suite.

Documentation

Documentation is available on our website.

Development

Running Prescript example scenarios:

yarn test-examples

Running individual scenario:

./bin/prescript "./examples/calculator/tests/Basic addition (page object).js"

Running unit tests:

yarn test

FAQs

Package last updated on 08 Oct 2021

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc