hypertest

package
v0.0.0-...-b044383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 24 Imported by: 0

README

Test Go Reference

The ADHD focused test runner

hypertest is an open-source CLI tool designed to help you maintain focus on the current coding subtask, built specifically for the easily distracted.

A better way to run tests
Run tests in the background while coding, results displayed as a live auto-updating todo list.

hypertest

Try it for yourself:
nabaz hypertest --cmdline "pytest -v"

Get Started

From source 🧙‍♂️
# Install nabaz binary.
export GOPATH=`go env GOPATH`
go install github.com/nabaz-io/nabaz/cmd/nabaz@latest

# Required for go test support
mkdir -p $GOPATH/github.com/nabaz-io
cd $GOPATH/github.com/nabaz-io
git clone https://github.com/nabaz-io/go
cd go/src
./make.bash
mv $GOPATH/src/github.com/nabaz-io/go /usr/local/nabaz-go

# Required for pytest support
pip3 install pytest pytest-cov pytest-json pytest-json-report pytest-metadata pydantic

# Verify install
$ nabaz version
version 0.0
Linux 🐧
# Ubuntu
wget -qO- https://nabaz.jfrog.io/artifactory/api/security/keypair/nabazgpg/public | apt-key add -
echo "deb [arch=amd64] https://nabaz.jfrog.io/artifactory/nabaz-debian-local stable main" >> /etc/apt/sources.list
sudo apt update
sudo apt install -y nabaz

Running Tests

pytest
nabaz hypertest --cmdline "pytest -v" .
go test
nabaz hypertest --cmdline "go test ./..."

Language Support

Languages

  • Python 🐍
  • Go
  • Java (Coming soon)
  • .NET/C# (Coming soon)
  • Javascript (TBD)
  • C/C++ (not planned currently)
  • Request here

Frameworks


Building

 go build -o nabaz ./cmd/nabaz

Contact us!

at hello@nabaz.io.

License

Licensed under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(args *Arguements) error

func FindFailedTest

func FindFailedTest(failedTest string, list []models.FailedTest) *models.FailedTest

func HighestSliceIndex

func HighestSliceIndex(slice []string, max int) int

func Run

func Run(cmdline string, repoPath string, history git.GitHistory, outputChannel chan<- models.NabazOutput)

Run exists mainly for testing purposes

Types

type Arguements

type Arguements struct {
	Cmdline  string // pytest -v, go test ./..., etc
	RepoPath string // Path to the repo, defaults to "."
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL