All Projects → bats-core → Bats Core

bats-core / Bats Core

Licence: other
Bash Automated Testing System

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to Bats Core

tap-xunit
TAP to xUnit XML converter
Stars: ✭ 40 (-98.58%)
Mutual labels:  tap, xunit, junit
scalatest-junit-runner
JUnit 5 runner for Scalatest
Stars: ✭ 30 (-98.94%)
Mutual labels:  junit, testing-tools
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (-99.26%)
Mutual labels:  xunit, junit
jdbdt
JDBDT: Java Database Delta Testing
Stars: ✭ 12 (-99.57%)
Mutual labels:  junit, testing-tools
Junit Dataprovider
A TestNG like dataprovider runner for JUnit with many additional features
Stars: ✭ 226 (-91.99%)
Mutual labels:  testing-tools, junit
test-class
Test::Class - an xUnit testing framework for Perl 5.x
Stars: ✭ 18 (-99.36%)
Mutual labels:  xunit, junit
JUnitPerf
API performance testing framework built using JUnit
Stars: ✭ 48 (-98.3%)
Mutual labels:  junit, testing-tools
Junit Extensions
JUnit5 extensions library including JUnit5 equivalents of some of the common JUnit4 rules: ExpectedException, TemporaryFolder etc
Stars: ✭ 39 (-98.62%)
Mutual labels:  testing-tools, junit
Goss
Quick and Easy server testing/validation
Stars: ✭ 4,550 (+61.35%)
Mutual labels:  testing-tools, tap
Zora
Lightest, yet Fastest Javascript test runner for nodejs and browsers
Stars: ✭ 356 (-87.38%)
Mutual labels:  testing-tools, tap
Scott
Never debug a test again: Detailed failure reports and hassle free assertions for Java tests - Power Asserts for Java
Stars: ✭ 125 (-95.57%)
Mutual labels:  testing-tools, junit
Junitparser
Parses JUnit/xUnit Result XML files with ease
Stars: ✭ 58 (-97.94%)
Mutual labels:  testing-tools, junit
Zunit
A powerful testing framework for ZSH projects
Stars: ✭ 140 (-95.04%)
Mutual labels:  testing-tools, tap
Acutest
Simple header-only C/C++ unit testing facility.
Stars: ✭ 170 (-93.97%)
Mutual labels:  testing-tools
Botium Core
The Selenium for Chatbots - Bots Testing Bots
Stars: ✭ 181 (-93.58%)
Mutual labels:  testing-tools
Vividus
Vividus is all in one test automation tool
Stars: ✭ 170 (-93.97%)
Mutual labels:  testing-tools
Rabtap
RabbitMQ wire tap and swiss army knife
Stars: ✭ 171 (-93.94%)
Mutual labels:  tap
Hitchhiker
a Restful Api test tool
Stars: ✭ 2,175 (-22.87%)
Mutual labels:  testing-tools
Environmentoverrides
QA assistant for a SwiftUI app: change the color scheme, accessibility settings, and localization on the fly!
Stars: ✭ 181 (-93.58%)
Mutual labels:  testing-tools
Reflow
Content-routable socks5 proxy switcher for your entire LAN.
Stars: ✭ 170 (-93.97%)
Mutual labels:  tap

Bats-core: Bash Automated Testing System (2018)

Latest release npm package License: MIT Continuous integration status Read the docs status

Join the chat in bats-core/bats-core on gitter

Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected.

A Bats test file is a Bash script with special syntax for defining test cases. Under the hood, each test case is just a function with a description.

#!/usr/bin/env bats

@test "addition using bc" {
  result="$(echo 2+2 | bc)"
  [ "$result" -eq 4 ]
}

@test "addition using dc" {
  result="$(echo 2 2+p | dc)"
  [ "$result" -eq 4 ]
}

Bats is most useful when testing software written in Bash, but you can use it to test any UNIX program.

Test cases consist of standard shell commands. Bats makes use of Bash's errexit (set -e) option when running test cases. If every command in the test case exits with a 0 status code (success), the test passes. In this way, each line is an assertion of truth.

Table of contents

NOTE The documentation has moved to https://bats-core.readthedocs.io

Testing

bin/bats --tap test

See also the CI settings for the current test environment and scripts.

Support

The Bats source code repository is hosted on GitHub. There you can file bugs on the issue tracker or submit tested pull requests for review.

For real-world examples from open-source projects using Bats, see Projects Using Bats on the wiki.

To learn how to set up your editor for Bats syntax highlighting, see Syntax Highlighting on the wiki.

Contributing

For now see the docs folder for project guides, work with us on the wiki or look at the other communication channels.

Contact

  • You can find and chat with us on our Gitter.

Version history

See docs/CHANGELOG.md.

Background

What's the plan and why?

Tuesday, September 19, 2017: This was forked from Bats at commit 0360811. It was created via git clone --bare and git push --mirror.

This bats-core repo is the community-maintained Bats project.

Why was this fork created?

There was an initial call for maintainers for the original Bats repository, but write access to it could not be obtained. With development activity stalled, this fork allowed ongoing maintenance and forward progress for Bats.

Copyright

© 2017-2021 bats-core organization

© 2011-2016 Sam Stephenson

Bats is released under an MIT-style license; see LICENSE.md for details.

See the parent project at GitHub or the AUTHORS file for the current project maintainer 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].