Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jesusoctavioas/nabaz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Go Reference License: MIT

The change based test runner

Hate waiting for tests?
Reduce up to 98% of test wait time by skipping tests unaffected by code change.

Under the hood: Gathers code coverage for individual tests, compares new code to code coverage.

nabaz installation

Run it locally like so:

CMDLINE="pytest -v"
nabaz test --cmdline $CMDLINE ./

Note: Contact us for early access to CI/CD version (remote storage, integration, system tests support).


Installation

From source 🧙‍♂️

# Install nabaz binary.
export GOPATH=`go env GOPATH`
go install github.com/nabaz-io/nabaz/cmd/nabaz@latest
cp $GOPATH/src/github.com/nabaz-io/nabaz/bin/* /usr/local/bin
chmod +x /usr/local/bin/nabaz

# 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

# Debian
wget https://nabaz.jfrog.io/artifactory/nabaz-debian-local/pool/stable/nabaz-0.0-amd64.deb -O nabaz.deb
sudo dpkg -i ./nabaz.deb

Running Tests

pytest

export CMDLINE="pytest -v"
nabaz test --cmdline "$CMDLINE" .

go test

export CMDLINE="go test"
export PKGS="./..." # IMPORTANT make sure packages are written SEPERATLY
nabaz test --cmdline $CMDLINE --pkgs $PKGS .

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 [email protected].

License

Licensed under the MIT license.

About

skip tests unaffected by code change

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •