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

@sitespeed.io/testrunner

v0.5.6

Published

A test runner for sitespeed.io server.

Downloads

17

Readme

The sitespeed.io test runner

The sitespeed.io worker is the worker that runs the sitespeed.io tests in a server/testrunner setup. You can have one runner per host machine and multiple workers per location, working on the same queue of tests.

The test runner will get the tests from a Redis (like) queue. When you start the runner, it needs to be able to connect to the queue.

Installation

The testrunner needs either sitespeed.io installed globally with it's dependencies or Docker installed.

Start the test runner

Start the runner with default configuration:

node ./app.js

If you need to override a couple of configurations you can do that with the command line parameters:

node ./app.js --redis.host MY_HOST

You can also provide your own configuration file (recommended). The configuration file can be YAML or JSON:

node ./app.js --config /path/to/config.yaml

Take a copy of the default configuration and adopt it to your own setup.

How tests are run

You can choose to either run the tests using the sitespeed.io container or install sitespeed.io/dependencies and browsers yourself.

If you choose to use Docker, set useDocker to true in the configuration. Then all you need to do is to make sure to have Docker installed on the server.

You can configure which Docker container to use. Normally when you run sitespeed.io you should configure the exact sitespeed.io version like sitespeedio/sitespeed.io:36.0.0 to know exact which version you are using. However if you want to deploy your testrunner and then let it auto update, you can use sitespeedio/sitespeed.io:latest as the tag and then make sure that you once per day update the container docker pull sitespeedio/sitespeed.io:latest.

docker:
  container: "sitespeedio/sitespeed.io:latest"

If you do not use Docker you can follow these instructions to install sitespeed.io. If you plan to run Android tests, make sure to install FFMPEG and the Python dependencies needed to get visual metrics.

Queues

Desktop and emulated mobile tests will work on tests that comes in the queue named location.name in your configuration. That means if you setup miltiple servers with the same location.name, they will work on the same queue, meaning take on the same amount of tests as you have runners at the same time.

For Android tests the default setting is one queue per device (device id). That means that you need to choose the exact device and run the test on that device. However there's also a configuration option where you can add the queue name in the configuration. The config is queue. That way you can setup multiple Android devices to work on the same queue.

Setting the same queue like this will make both phones take on tests on the same queue.

- name: "Android"
   type: "android"
   browsers: ["chrome", "firefox"]
   model: "Moto G5"
   deviceId: "ZY322MMFZ1"
   useDocker: false
   connectivity: ["native"]
   queue: "motog5"

- name: "Android"
   type: "android"
   browsers: ["chrome", "firefox"]
   model: "Moto G5"
   deviceId: "XY322MMFZ1"
   useDocker: false
   connectivity: ["native"]
   queue: "motog5"

Documentation

I'm working on the documentation and you will find the full documentation at https://www.sitespeed.io/documentation/onlinetest when it's ready.