All Projects → zunit-zsh → Zunit

zunit-zsh / Zunit

Licence: mit
A powerful testing framework for ZSH projects

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Zunit

tropic
🍍 Test Runner Library
Stars: ✭ 29 (-79.29%)
Mutual labels:  tap, unit-testing, test-runner, test-automation, test-framework
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (-70.71%)
Mutual labels:  unit-testing, test-runner, test-automation, test-framework, testing-tools
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+13798.57%)
Mutual labels:  unit-testing, test-framework, test-runner, tap
Qtools
QTools collection of open source tools for embedded systems development on Windows, Linux and MacOS
Stars: ✭ 64 (-54.29%)
Mutual labels:  testing-tools, unit-testing, test-automation, test-framework
Karate
Test Automation Made Simple
Stars: ✭ 5,497 (+3826.43%)
Mutual labels:  developer-tools, testing-tools, test-automation, assertions
IO-TESTER
A functional test framework
Stars: ✭ 32 (-77.14%)
Mutual labels:  test-runner, test-automation, test-framework, testing-tools
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-85.71%)
Mutual labels:  unit-testing, test-automation, test-framework, testing-tools
Testcafe
A Node.js tool to automate end-to-end web testing.
Stars: ✭ 9,176 (+6454.29%)
Mutual labels:  testing-tools, test-automation, test-framework
bron
🏃‍♂️ Fast & tiny test runner for Node.js
Stars: ✭ 17 (-87.86%)
Mutual labels:  test-runner, test-framework, testing-tools
Baretest
An extremely fast and simple JavaScript test runner.
Stars: ✭ 364 (+160%)
Mutual labels:  test-framework, test-runner, tap
Testfx
MSTest V2 framework and adapter
Stars: ✭ 391 (+179.29%)
Mutual labels:  testing-tools, test-framework, test-runner
angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (-52.14%)
Mutual labels:  unit-testing, test-runner, testing-tools
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+2592.86%)
Mutual labels:  unit-testing, test-framework, test-runner
Bash unit
bash unit testing enterprise edition framework for professionals
Stars: ✭ 419 (+199.29%)
Mutual labels:  unit-testing, test-framework, assertions
Openrunner
Computest Openrunner: Benchmark and functional testing for frontend-heavy web applications
Stars: ✭ 16 (-88.57%)
Mutual labels:  test-runner, test-automation, testing-tools
Tlsfuzzer
SSL and TLS protocol test suite and fuzzer
Stars: ✭ 335 (+139.29%)
Mutual labels:  testing-tools, test-automation, test-framework
playwright-fluent
Fluent API around playwright
Stars: ✭ 71 (-49.29%)
Mutual labels:  test-runner, test-automation, test-framework
Vstest
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
Stars: ✭ 624 (+345.71%)
Mutual labels:  testing-tools, unit-testing, test-runner
Stryker4s
Mutation testing for Scala. Work in progress...
Stars: ✭ 118 (-15.71%)
Mutual labels:  testing-tools, unit-testing, test-automation
Awesome Test Automation
A curated list of awesome test automation frameworks, tools, libraries, and software for different programming languages. Sponsored by http://sdclabs.com
Stars: ✭ 4,712 (+3265.71%)
Mutual labels:  testing-tools, test-automation, test-runner

ZUnit

GitHub release Build Status Gitter

ZUnit is a powerful unit testing framework for ZSH

Installation

WARNING: Although the majority of ZUnit's functionality works as expected, it is in the early stages of development, and as such bugs are likely to be present. Please continue with caution, and report any issues you may have.

Zulu

zulu install zunit

NOTE: In versions of Zulu prior to 1.2.0, there is an additional step required after install:

cd ~/.zulu/packages/zunit
./build.zsh
zulu link zunit

zplug

ZUnit and its dependencies can all be installed with zplug.

zplug 'molovo/revolver', \
  as:command, \
  use:revolver
zplug 'zunit-zsh/zunit', \
  as:command, \
  use:zunit, \
  hook-build:'./build.zsh'

Homebrew

brew install zunit-zsh/zunit/zunit

Manual

git clone https://github.com/zunit-zsh/zunit
cd ./zunit
./build.zsh
chmod u+x ./zunit
cp ./zunit /usr/local/bin

ZUnit requires Revolver to be installed, and in your $PATH. The zulu or homebrew installation methods will install this dependency for you.

Writing Tests

Test syntax

Tests in ZUnit have a simple syntax, which is inspired by the BATS framework.

#!/usr/bin/env zunit

@test 'My first test' {
	# Test contents here
}

The body of each test can contain any valid ZSH code. The zunit shebang #!/usr/bin/env zunit MUST appear at the top of each test file, or ZUnit will not run it.

Documentation

For a full breakdown of ZUnit's syntax and functionality, check out the official documentation.

Contributing

All contributions are welcome, and encouraged. Please read our contribution guidelines and code of conduct for more information.

License

Copyright (c) 2016 James Dinsdale [email protected] (molovo.co)

ZUnit is licensed under The MIT License (MIT)

Team

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].