Skip to content

Commit 93c4532

Browse files
committed
Add example test run output to README
1 parent 85651de commit 93c4532

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,39 @@ This will concatenate all files (including hidden files) in the `./my-project` d
4545
This tool includes a set of tests to ensure it works as expected. You can run the tests using the following command:
4646

4747
```
48-
bun test
48+
bun test --coverage
49+
```
50+
51+
Example output:
52+
53+
```
54+
bun test v1.1.3 (2615dc74)
55+
56+
files-to-prompt.test.ts:
57+
✓ files-to-prompt.ts > should include single file passed on the command line [7.09ms]
58+
✓ files-to-prompt.ts > should include multiple files passed on the command line [2.81ms]
59+
✓ files-to-prompt.ts > should include files in directories passed on the command line [1.81ms]
60+
✓ files-to-prompt.ts > should include files a few levels deep in a directory structure [2.01ms]
61+
✓ files-to-prompt.ts > should exclude files matching patterns passed via --ignore [1.91ms]
62+
✓ files-to-prompt.ts > should exclude files matching patterns in .gitignore [1.93ms]
63+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore [1.96ms]
64+
✓ files-to-prompt.ts > should exclude directory matching patterns in .gitignore in different directories [1.99ms]
65+
✓ files-to-prompt.ts > should include hidden files and directories when --include-hidden is passed [1.88ms]
66+
✓ files-to-prompt.ts > should ignore .gitignore files when --ignore-gitignore is passed [1.72ms]
67+
✓ files-to-prompt.ts > should skip binary files [1.93ms]
68+
✓ files-to-prompt.ts > should fail with error message if path does not exist [2.35ms]
69+
✓ files-to-prompt.ts > should skip FIFOs [13.40ms]
70+
--------------------|---------|---------|-------------------
71+
File | % Funcs | % Lines | Uncovered Line #s
72+
--------------------|---------|---------|-------------------
73+
All files | 92.00 | 96.69 |
74+
files-to-prompt.ts | 92.00 | 96.69 | 14,18,50
75+
--------------------|---------|---------|-------------------
76+
77+
13 pass
78+
0 fail
79+
39 expect() calls
80+
Ran 13 tests across 1 files. [86.00ms]
4981
```
5082

5183
## Contributing

0 commit comments

Comments
 (0)