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

portman-sugar

v1.0.6

Published

Enhances Portman with modular test configurations, automated test discovery, and predefined overrides for streamlined API testing workflows.

Downloads

1,410

Readme

Portman-Sugar

Extend the capabilities of Portman with portman-sugar, a module designed to streamline the management and execution of API tests using the Portman framework. portman-sugar simplifies test configurations, supports modular test files, and enhances test maintenance and readability.

Features

  • Modular Test Configuration: Manage your tests in separate files with the ability to declare API operations once per file.
  • Automated Test Discovery: Automatically finds test files in a specified directory.
  • Predefined Configurations: Comes with a set of predefined configurations which you can easily override according to your testing needs.
  • Integration with Portman: Fully compatible with Portman; you can use portman-sugar alongside other Portman tools without any conflict.

Installation

Install portman-sugar via npm:

npm install --save-dev portman-sugar

Usage

  1. Prepare your test files in a specified directory. Each test file should declare an API operation and may include variations and assigned variables.

  2. Run the tool using the command-line interface. Here are some options you can configure:

npx portman-sugar --testFolder ./path/to/tests --collectionName "Your Collection Name"

Command-Line Options

  • --testFolder: Path to the folder containing test files.
  • --collectionName: Name of the generated Postman collection.
  • --openApi: Path to your OpenAPI specification file (default: ./openapi.yaml).
  • --output: Path for the output Postman collection JSON file (default: ./postman.collection.json).

Additional options include setting paths for various configurations like --authConfig, handling different types of tests (--contractTests, --fuzzingTests), and excluding default configurations with --excludeDefault.

Example

Below is an example command to run portman-sugar:

node dist/index.js --testFolder ./api-tests --collectionName "API Collection" --output ./output/postman.collection.json

Contributing

Contributions are welcome! Please open an issue to discuss your ideas or submit a pull request.

License

This project is licensed under the ISC License - see the LICENSE file for details.