0.1.0 • Published 5 years ago

@paldepind/tst v0.1.0

Weekly downloads
1
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

tst

A universal test command for running tests with fewer key-strokes.

tst automatically finds configuration files associated with test and runs the appropriate command to run the tests.

In a NodeJS project it runs npm test, in a Rust project it runs cargo test, in a Haskell project it runs stack test, and so on.

Alias it to t and treat it as a key-stroke saving short-cut that always expands to the test command you want to write.

Features

  • Works with many different programming languages and project configuration.
  • A portable dependency free POSIX shell script.
  • Provides helpful error messages in case tests are not available or cannot be run.

Install

Dump the script somewhere in your path.

Supported tools and languages

ToolLanguageDetected byCommand
npmJavaScript, etc.package.json with test scriptnpm test
yarnJavaScript, etc.package.json with test script and yarn.lockyarn test
CargoRustCargo.tomlcargo test
MavenJava, etc.pom.xmlmvn test
LeiningenClojureproject.cljlein test
StackHaskellstack.yamlstack test
makeAnyMakefile with a test targetmake test