Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fortio.org/testscript

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fortio.org/testscript

  • v0.3.2
  • Go
  • Socket score

Version published
Created
Source

Testscript

Script-based testing based on txtar files (now/here a toplevel module)

  • Provides a shell-like test environment that is very nicely tuned for testing Go CLI commands.
  • Extracted version of the core Go team's internal testscript package.
  • Heavily used to test the go command.
  • Includes patterns for checking stderr/stdout, command pass/fail assertions, and so on.
  • Built-in support for Go concepts like build tags.
  • Integrates well with go test, including coverage support.
  • Inputs and sample outputs are in the txtar text archive format, also used by the Go playground.
  • Accompanied by a testcript command for running standalone scripts with files embedded in txtar format.

A great introduction to using testscripts is this blog post series.

Also included are the following:

  • imports: list of known architectures and OSs, and support for reading import statements.
  • par: do work in parallel.
  • testenv: information on the current testing environment.
  • testscript:

This is a fork/hacked up version of https://github.com/rogpeppe/go-internal as a toplevel testscript/ minimal module - keeping up with upstream with a few minor changes (like allowing "!foo" to work instead of requiring "! foo", a lot fewer dependencies/code outside of standard package (so no unquote for instance), etc)

FAQs

Package last updated on 06 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc