Skip to content

Commit 25ef228

Browse files
committed
docs: add project overview to website
1 parent e957e0b commit 25ef228

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

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)