Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datacharmer/wordcount
Test repository for testscript operations
https://github.com/datacharmer/wordcount
Last synced: 5 days ago
JSON representation
Test repository for testscript operations
- Host: GitHub
- URL: https://github.com/datacharmer/wordcount
- Owner: datacharmer
- License: apache-2.0
- Created: 2024-01-21T16:48:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-03T15:04:35.000Z (9 months ago)
- Last Synced: 2024-06-21T08:28:55.928Z (5 months ago)
- Language: Go
- Size: 2.52 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Wordcount: a simple example project for testscript documentation
The `wordcount` project is a command line program that accepts the same flags as the classic `wc` tool.
```
./wordcount -h-c shows number of bytes
-l shows number of lines
-w shows number of words
-m shows number of characters
```Additionally, for the purpose of this project, it implements several more options, that help with the specific testing.
```
-log-file string writes log file
-o shows number of lowercase characters
-s shows number of spaces
-u shows number of uppercase characters
-version shows version
```The aim of this project is to illustrate a 30-minute talk on `testscript`. As such, it does not exhaust all `testscript` feature, but covers most of the basic ones, while introducing a few advanced features that are neglected in the official docs.
Note: There is a serious bug in this `wordcount`: you should not rely on it on any serious business. If you find the bug, please file an issue. Extra points if you provide a (`testscript`-based) test to prove it.