Commit 0e5e4457 authored by Sam Stephenson's avatar Sam Stephenson
Browse files

Bats 0.3.0

parent 6d1852b8
Copyright (c) 2011 Sam Stephenson
Copyright (c) 2013 Sam Stephenson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
......
......@@ -120,10 +120,10 @@ will source the script `test/test_helper.bash` in your test file. This
can be useful for sharing functions to set up your environment or load
fixtures.
### The _skip_ directive
### The _skip_ command
Tests can be skipped over by using the `skip` directive at the point in
a test you wish to skip.
Tests can be skipped by using the `skip` command at the point in a
test you wish to skip.
```bash
@test "A test I don't want to execute for now" {
......@@ -133,7 +133,7 @@ a test you wish to skip.
}
```
Optionally, a reason for skipping can be included:
Optionally, you may include a reason for skipping:
```bash
@test "A test I don't want to execute for now" {
......@@ -211,6 +211,23 @@ on the wiki.
### Version history
*0.3.0* (October 21, 2013)
* Improved formatting for tests run from a terminal. Failing tests
are now colored in red, and the total number of failing tests is
displayed at the end of the test run. When Bats is not connected to
a terminal (e.g. in CI runs), or when invoked with the `--tap` flag,
output is displayed in standard TAP format.
* Added the ability to skip tests using the `skip` command.
* Added a message to failing test case output indicating the file and
line number of the statement that caused the test to fail.
* Added "ad-hoc" test suite support. You can now invoke `bats` with
multiple filename or directory arguments to run all the specified
tests in aggregate.
* Added support for test files with Windows line endings.
* Fixed regular expression warnings from certain versions of Bash.
* Fixed a bug running tests containing lines that begin with `-e`.
*0.2.0* (November 16, 2012)
* Added test suite support. The `bats` command accepts a directory
......@@ -226,5 +243,5 @@ on the wiki.
---
© 2011 Sam Stephenson. Bats is released under an MIT-style license;
© 2013 Sam Stephenson. Bats is released under an MIT-style license;
see `LICENSE` for details.
......@@ -2,7 +2,7 @@
set -e
version() {
echo "Bats 0.2.0"
echo "Bats 0.3.0"
}
usage() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment