npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@code-dot-org/js-interpreter-tyrant

v0.2.2

Published

A test harness for running test262 ecmascript test suite against Neil Fraser's js interpreter

Downloads

21

Readme

js-interpreter-tyrant

A test harness for running test262 ecmascript test suite against Neil Fraser's js interpreter

Install

First you'll want to make sure @code-dot-org/js-interpreter is installed since it is a peer dependency:

npm install @code-dot-org/js-interpreter

Then you can install js-interpreter-tyrant:

npm install @code-dot-org/js-interpreter-tyrant

Example Usage

Running tests

js-interpreter-tyrant --run

Test results will be saved to tyrant/test-results-new.json each time you run this command. If the --run option isn't specified, then js-interpreter-tyrant will just use the previously saved results for all it's operations.

Saving test results for future comparison

js-interpreter-tyrant --save

Since it's a pretty high bar to get all the tests to pass, it's helpful to save the results of your test run for future comparison. Then at least you can figure out if changes you make have fixed or regressed anything as compared to the last time you ran them. The --save option will just copy the test results to tyrant/test-results.json. It's a good idea to check this in to your repo to live along side the interpreter.

Comparing test results to previously saved results

js-interpreter-tyrant --diff

Once you have some saved results, you can make changes to the interpreter and see what the impact those changes had by rerunning the tests and then comparing them with the --diff option. This will give you a summary of fixes and regressions compared to the previous test run. For a detailed listing of which specific tests were fixed/regressed, you can add the --verbose option.

All Options

| Option | Alias | Description | | ------ | ----- | ----------- | | --diff | -d | Compare test results to previously saved results | | --run | -r | Generate new test results | | --rerun | | Rerun tests that resulted in a regression. Good for fixing timeout failures | | --splitInto N | | Used in conjunction with --run, only run a portion (1/N) of the tests | | --splitIndex N | | Used in conjunction with --run and --splitInto, specify which portion of the (1/N) tests to run | | --save | -s | Save the results of the current or previously recorded test run | | --threads | -t | Specify the number of threads to use when running the tests. Defaults to the number of processors on your machine | | --progress | | Display a progress bar while running tests | | --verbose | -v | Display more verbose output | | --root [DIR] | | Change the root directory where js-interpreter-tyrant will look for the test262 suite and results files. Defaults to tyrant | | --compiledOut [DIR] | | Directory to dump compiled test files to | | --savedResults [FILE] | | Location of the previously saved test results file. Defaults to tyrant/test-results.json | | --input [FILE] | -i | Location of the test results file. When used in conjection with --run, test results will be stored at this location. | | --interpreter | | The path to the interpreter module to use. Defaults to @code-dot-rg/js-interpreter/interpreter.js | --circleBuild [BUILD-ID] | | Downloads and merges build results for the code-dot-org/JS-Interpreter repo | | --hostPath [PATH] | | Path to the js-interpreter script. Defaults to the node_modules/js-interpreter/bin/run.js |