🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

prescript

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prescript

Object-oriented acceptance test tool

0.55555555.0
latest
npm
Version published
Weekly downloads
403
22.49%
Maintainers
2
Weekly downloads
 
Created
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