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

pwtg

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pwtg

Node.js Typescript wrapper for using Microsoft PICT programmatically.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

PWTG - PairWise Test Generator

This simple library is a wrapper for Microsoft's PICT tool.

Unlike some other packages this library does not include PICT binaries. User is expected to provide requested binary him/her self. This is primarily for security reasons. It is not a good practise to download npm packages with binaries inside.

Preconditions

Installation

  • run npm install pwtg

Usage

Generate tests into json file

import PictGenerator from "pwtg";

const generator = new Generator(
  "path/to/input-model-file.txt",
  "path/to/pict-binary",
);

await generator.generate("json", true, "path/to/output-json-file.json");

Generate tests into txt file

import PictGenerator from "pwtg";

const generator = new Generator(
  "path/to/input-model-file.txt",
  "path/to/pict-binary",
);

await generator.generate("text", true, "path/to/output-text-file.txt");

Just generate output string but do not save

import PictGenerator from "pwtg";

const generator = new Generator(
  "path/to/input-model-file.txt",
  "path/to/pict-binary",
);

await generator.generate("text", false);

console.log(generator.generated);

Generate output using seed file

What is seeding and when to use it - see HERE

import PictGenerator from "pwtg";

const generator = new Generator(
  "path/to/input-model-file.txt",
  "path/to/pict/binary",
);

await generator.generate(
  "text",
  true,
  "file/path/to/output-text-file.txt",
  "path/to/seed-text-file.txt",
);

Keywords

FAQs

Package last updated on 13 May 2024

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