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

@schwabyio/xrun

v2.4.2

Published

Postman Extended Runner

Downloads

148

Readme

xRun Image

GitHub license npm version code coverage

Table of Contents

xRun - CLI Runner For Postman

Overview

xRun is a command line interface (CLI) app that extends Newman to enable your organization to run Postman tests with speed and at scale.

Features

  • Direct support for xtest.
  • Run Postman tests in parallel by setting the limitConcurrency configuration.
  • Run tests locally or as part of Continuous Integration (CI) with your automated build server of choice.
  • Generates beautiful html reports that allow you to quickly filter and zero in on test failures.
  • Generate junit reports (provided by Postman's Newman).
  • Get test summary and results sent to slack on your mobile device.
  • Configurable settings.json file with command line override capability.
  • By default, all folders (and tests within) from the configured xRunProjectPath are run. You can exclude folders using an exclusion list.
  • Single out one or more tests to run by specifying a CSV list of test cases from the command line.

Installation Steps

  1. Install Node.js (It's recommended to install Node.js using node version manager).
  2. Install xRun (See here if you receive EACCES permissions errors when installing packages globally):
npm install -g @schwabyio/xrun
  1. Create a local settings.json file (note the absolute path for step 4). Below is an example absolute path:
/Users/john/xrun/settings.json

See here for all available configurations. Below is an example settings.json file:

{
  "limitConcurrency": 10,
  "autoOpenTestResultHtml": true,
  //"sendSummaryResultsToSlack": true,
  "slackChannel": "C04XXXXXXXX",
  "slackToken": "xoxb-XXXXXXXXXXXXXXXXXXXXXXXXX",
  "slackHardAlertOnFailure": true,
  "projectName": "xtest",
  "environmentType": "qa",
  "xRunProjectPath": "[PATH-TO-PROJECT-THAT-CONTAINS-POSTMAN-COLLECTIONS]"
}
  1. The first time you run 'xrun' on the command line you will be prompted for the absolute path to the settings.json file. Type or paste the absolute path to the settings.json you created in step 3 above. Below is an example:
% xrun
No settings path is currently set. Please provide one below.
What is the absolute path to your xrun settings.json file? /Users/john/xrun/settings.json
The path you have provided is '/Users/john/xrun/settings.json'

Update Steps

  1. To update to the latest version, run the following command:
npm update -g @schwabyio/xrun
  1. The first time you run 'xrun' on the command line you will be prompted for the absolute path to the settings.json file. Type or paste the absolute path to the settings.json you created during step 3 of the install above. Below is an example:
% xrun
No settings path is currently set. Please provide one below.
What is the absolute path to your xrun settings.json file? /Users/john/xrun/settings.json
The path you have provided is '/Users/john/xrun/settings.json'

Usage

% xrun
__________________________________________________________________________________________________________________________________
                                                                                                                                  
                                                         xRun Ver. 2.4.2
__________________________________________________________________________________________________________________________________


   USAGE: xrun <program-command> [--settingsKey settingsValue]


          <program-command> - Required. Valid program-command values are:

                                          g[et]  - GET a list of Postman collections within the given xRunProjectPath.
                                          a[ll]  - Run ALL Postman collections within the given xRunProjectPath.
                               <collectionList>  - Run one or more Postman collections within the given xRunProjectPath
                                                   by providing a csv list of COLLECTION NAMEs.

    --settingsKey settingsValue - Optional. Any number of settings overrides.

__________________________________________________________________________________________________________________________________

Settings

All available settings are documented here.

Settings Order of Precedence (lowest to highest):

  1. Default value
  2. Local settings.json override
  3. Environment variables override
  4. Command line argument override