Skip to content

Commit 6a440bc

Browse files
committed
go test coverage added to testAll.sh
1 parent f36adb3 commit 6a440bc

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ date | version | comment
7878
2020-04-22 | 0.9 | fileWatcher added (no need to re-load til.json anymore), now `trice s` possible for COMport scan, NUCLEO-F070 demo project added, now with ANSI color (faster), default log filename with timestamp, remote displayServer shutdown possible
7979
2020-05-12 | 0.9.1 | `SeggerRTT` & `SeggerRTTD` added, docs extended, more test examples, TRICE16_1 critical section bugfix
8080
2020-06-29 | 0.9.2 | CLI slightly changed (no more 'r'), doc extended, added: Tests, Examples, JLINK, RND, SIM, FILE, TRICE_SYNC, TRICE_VARIANT, TRICE_ASSERT, now no semi-colon after `TRICE` is tolerated (macros), several `TRICE` in one code line are now ok
81-
... | ... |
81+
... | ... | ...
8282
2022-FEB-11 | 0.48.0 | FILE & TCP4 input ports added
8383
2022-APR-27 | 0.49.1 | FILEBUFFER support added
8484
2022-APR-27 | 0.49.1 | Darwin binaries added

clean-dsstore.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
# === Terminal colors ===
2121
# RED='\033[0;31m'
22-
GREEN='\033[0;32m'
23-
YELLOW='\033[1;33m'
24-
BLUE='\033[1;34m'
25-
NC='\033[0m' # No color
22+
# GREEN='\033[0;32m'
23+
# YELLOW='\033[1;33m'
24+
# BLUE='\033[1;34m'
25+
# NC='\033[0m' # No color
2626

2727
# === Default settings ===
2828
TARGET_DIR="."

docs/TriceUserManual.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7764,7 +7764,7 @@ Labels will be applied automatically within seconds after opening or updating a
77647764

77657765
#### 44.2.2. <a id='📂-`.github/workflows`-—-github-actions-workflows'></a>📂 `.github/workflows` — GitHub Actions Workflows
77667766

7767-
The [.github/workflows/](../.github/workflows/) folder contains YAML decriptions for various actions, which will be triggered automatically on certain events or are started manually.
7767+
The [.github/workflows/](../.github/workflows/) folder contains YAML descriptions for various actions, which will be triggered automatically on certain events or are started manually.
77687768
Every *yml* file in this directory defines an automated process. These processes run on GitHub’s servers (CI/CD).
77697769

77707770
* [README.md](../.github/workflows/README.md): Documentation specifically for the /workflows folder.

testAll.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ my_long_task() {
3737
echo "Lint Markdown files...done" 2>&1 | tee -a $triceFolder/testAll.log
3838
echo "Check links..." 2>&1 | tee -a $triceFolder/testAll.log
3939
lychee . 2>&1 | tee -a $triceFolder/testAll.log
40-
echo "Check links...done" 2>&1 | tee -a $triceFolder/testAll.log.
40+
echo "Check links...done" 2>&1 | tee -a $triceFolder/testAll.log
41+
42+
echo "Check Go coverage..." 2>&1 | tee -a $triceFolder/testAll.log
43+
go test ./... -covermode=atomic -coverprofile=coverage.out -coverpkg=./...
44+
go tool cover -func=coverage.out 2>&1 | tee -a $triceFolder/testAll.log
45+
echo "to analyze call 'go tool cover -html=coverage.out'" 2>&1 | tee -a $triceFolder/testAll.log
46+
go tool cover -html=coverage.out 2>&1 | tee -a $triceFolder/testAll.log
47+
echo "Check Go coverage...done" 2>&1 | tee -a $triceFolder/testAll.log
4148

4249
# show environment and prepare
4350
echo "SELECTED: $SELECTED" 2>&1 | tee -a $triceFolder/testAll.log

0 commit comments

Comments
 (0)