Skip to content

Commit fd48e3e

Browse files
committed
Release 0.4.0
1 parent c1ec34c commit fd48e3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bach 测试框架
1+
# Bach 单元测试框架
22

33
[![Build Status](https://travis-ci.org/bach-sh/bach.svg)](https://travis-ci.org/bach-sh/bach)
44
[![GitHub Actions](https://github.com/bach-sh/bach/workflows/Testing%20Bach/badge.svg)](https://github.com/bach-sh/bach)
@@ -17,7 +17,7 @@ Bach is a [Bash](https://www.gnu.org/software/bash/) testing framework, can be u
1717

1818
## Bach 入门
1919

20-
Bach 作为一个真正的单元测试框架,意味着任何在 PATH 环境变量中的命令都成为了被测的 Bash 脚本的外部依赖,这些外部命令都不会被真正的执行。换句话说,在 Bach 的测试中,除了部分的内置命令外,所有的命令都是 "Dry Run" 的。所以,在 Bach 中,验证的是命令被执行的时候是否使用了期望的参数,而非验证命令的执行结果。毕竟,我们测试的是 Bash 脚本的行为,而非测试那些命令是否可以正常工作。Bach 也提供了一系列的 API 可以用于模拟命令的执行。
20+
Bach 单元测试框架作为一个真正的 Bash 脚本的单元测试框架,意味着任何在 PATH 环境变量中的命令都成为了被测的 Bash 脚本的外部依赖,这些外部命令都不会被真正的执行。换句话说,在 Bach 的测试中,除了部分的内置命令外,所有的命令都是 "Dry Run" 的。所以,在 Bach 中,验证的是命令被执行的时候是否使用了期望的参数,而非验证命令的执行结果。毕竟,我们测试的是 Bash 脚本的行为,而非测试那些命令是否可以正常工作。Bach 也提供了一系列的 API 可以用于模拟命令的执行。
2121

2222
### Bach 的依赖
2323

@@ -576,7 +576,7 @@ Bach 测试框架中提供的 API 都是以 `@` 开头的。
576576

577577
## 版本
578578

579-
Bach 当前最新的版本是 0.2.9,查看[Bach 的发布列表](https://github.com/bach-sh/bach/releases)
579+
Bach 当前最新的版本是 0.4.0,查看[Bach 的发布列表](https://github.com/bach-sh/bach/releases)
580580

581581
## 作者
582582

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Bach Testing Framework
1+
# Bach Unit Testing Framework
22

33
[![Build Status](https://travis-ci.org/bach-sh/bach.svg)](https://travis-ci.org/bach-sh/bach)
44
[![GitHub Actions](https://github.com/bach-sh/bach/workflows/Testing%20Bach/badge.svg)](https://github.com/bach-sh/bach)
@@ -19,7 +19,7 @@ Bach is a Bash testing framework, can be used to test scripts that contain dange
1919

2020
## Getting Started
2121

22-
Bach Testing Framework is a **real** unit testing framework. All commands in the `PATH` environment variable become external dependencies of bash scripts being tested. No commands can be actually executed. In other words, all commands in Bach test cases are **dry run**. Because that unit tests should verify the behavior of bash scripts, not test commands. Bach Testing Framework also provides APIs to mock commands.
22+
Bach Unit Testing Framework is a **real** unit testing framework. All commands in the `PATH` environment variable become external dependencies of bash scripts being tested. No commands can be actually executed. In other words, all commands in Bach test cases are **dry run**. Because that unit tests should verify the behavior of bash scripts, not test commands. Bach Testing Framework also provides APIs to mock commands.
2323

2424
### Prerequisites
2525

@@ -550,7 +550,7 @@ n
550550

551551
## Versioning
552552

553-
The latest version of Bach is 0.2.9, See [Bach Releases](https://github.com/bach-sh/bach/releases) for more.
553+
The latest version of Bach is 0.4.0, See [Bach Releases](https://github.com/bach-sh/bach/releases) for more.
554554

555555
## Author
556556

0 commit comments

Comments
 (0)