New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

testcase-x

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcase-x

Testcase Cross Checker

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Testcase X

Testcase Cross Checker

NPM

Actually it is a program output cross checker.

But also generate testcases using simeple but highly flexible rules. (By testcase-gen)

Features

  • Generate testcases by simple rules.

  • Check output with customizable preprocessor.

How to Use

1. Install

npm i testcase-x

2. Run Cross Checker

const { writeFileSync, readFileSync } = require("fs");
const { join } = require("path");
const { Checker } = require("../lib");

const c = new Checker()
    .source(readFileSync(join(__dirname, "jacob.c"), "utf8"))
    .source(readFileSync(join(__dirname, "how.c"), "utf8"))
    .genTestcase(require("./testcase.js"))
    .setPreprocessor(require("./preprocessor.js"));

c.go().then((diff) => {
    writeFileSync(join(__dirname, "result.json"), JSON.stringify(diff, null, 2));
});

For More Details, See EXAMPLE.

CLI Tool

cli.png

Install CLI

npm i -g testcase-x

Use CLI

testcase-x --recipe [recipe path] --testcase [testcase path] --output [report path] --preprocessor [preprocessor path] --source [source path] [source path 2] ...
        --recipe (-r): Recipe JS File Path.
        --testcase (-t): Testcase File Path.
        --output (-o): Output File Path.
        --preprocessor (-p): Preprocessor JS File Path.
        --source (-s): Source File Path.
        --version (-V) or (-v): Show version.

FAQs

Package last updated on 04 Nov 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