@tensile-perf/runner

0.3.12 • Public • Published

@tensile-perf/runner

The application that runs Tensile tests. This application spins up a server, runs code and collects the results.

Usage

Install the package:

# with npm
$ npm install --save-dev @tensile-perf/runner

# or with yarn
$ yarn add -D @tensile-perf/runner

Create a benchmark test file:

// Save in button.bench.js
const itemRenderer = () => {
  const btn = document.createElement('button');
  btn.appendChild(document.createTextNode('Simple HTML Button'));
  
  return btn;
};

export default itemRenderer;
export { tests } from '@tensile-perf/web-components';

Run your test:

$ tensile --file button.bench.js

Review results in the .tensile/ folder

Advanced configuration

TODO

API

Use the CLI for help documentation:

$ tensile help

Building

Run yarn nx run runner:build to build the library.

Trademarks This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Readme

Keywords

none

Package Sidebar

Install

npm i @tensile-perf/runner

Weekly Downloads

1,799

Version

0.3.12

License

none

Unpacked Size

108 kB

Total Files

52

Last publish

Collaborators

  • spmonahan