Skip to content

Commit a82ae92

Browse files
authored
Merge pull request #426 from TypedDevs/docs/project-overview
Add project overview to website
2 parents e957e0b + e082105 commit a82ae92

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Count data providers when counting total tests
99
- Add benchmark feature
1010
- Support placeholder `::ignore::` in snapshots
11+
- Add project overview docs
1112

1213
## [0.20.0](https://github.com/TypedDevs/bashunit/compare/0.19.1...0.20.0) - 2025-06-01
1314

docs/.vitepress/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ export default defineConfig({
9090
}, {
9191
text: 'Examples',
9292
link: '/examples'
93+
}, {
94+
text: 'Project overview',
95+
link: '/project-overview',
9396
}, {
9497
text: 'Support',
9598
link: '/support',

docs/project-overview.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Project overview
2+
3+
**bashunit** is a lightweight testing framework for Bash. It focuses on helping developers verify their shell scripts with minimal setup. The library bundles hundreds of assertions and helpers, including spies, mocks and data providers.
4+
5+
This repository hosts the bashunit source code, its documentation and many automated tests. New contributors can use this overview to understand the basic layout and workflow when working on the project.
6+
7+
## Repository layout
8+
9+
- `src` – library functions used by `bashunit`.
10+
- `bin` – the executable entry points.
11+
- `adrs` – internal architecture decisions records.
12+
- `example` – example scripts and tests demonstrating usage.
13+
- `tests` – automated tests for bashunit itself.
14+
- `docs` – documentation built with [VitePress](https://vitepress.dev/).
15+
16+
## Running tests
17+
18+
The project uses bashunit to test itself. To execute the full suite, run:
19+
20+
::: code-group
21+
```bash [Quick]
22+
./bashunit -s -p tests # Regular tests
23+
./bashunit -s -b tests # Benchmark tests
24+
```
25+
```bash [Complete]
26+
./bashunit --simple --parallel tests # Regular tests
27+
./bashunit --simple --bench tests # Benchmark tests
28+
```
29+
:::
30+
31+
32+
> See more command line options: [here](/command-line)
33+
34+
## Contributing
35+
36+
Pull requests are welcome! Please read the [contribution guide](https://github.com/TypedDevs/bashunit/blob/main/.github/CONTRIBUTING.md) before sending patches. All contributions are covered by the MIT license.
37+
38+
For documentation changes you can preview locally with:
39+
40+
```bash
41+
npm ci
42+
npm run docs:dev
43+
```
44+
45+
Before submitting your pull request ensure that `npm run docs:build` succeeds and that the test suite passes.
46+
47+
## Further reading
48+
49+
For a step‑by‑step introduction check the [quickstart](/quickstart). Detailed usage of individual features is explained throughout the docs site.

0 commit comments

Comments
 (0)