projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
74f975a
)
Run the engine unit-test in Woodpecker-CI
author
Alexander Popov
<alex.popov@linux.com>
Sun, 7 May 2023 21:21:58 +0000
(
00:21
+0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sun, 7 May 2023 21:49:35 +0000
(
00:49
+0300)
.woodpecker/engine_unit-test.yml
patch
|
blob
|
history
diff --git
a/.woodpecker/engine_unit-test.yml
b/.woodpecker/engine_unit-test.yml
index b6711c50d03bd33bf916c3b9e4e744dca061de9c..442b14c0f0a84fd5a83d5a374beefd0f93db86d7 100644
(file)
--- a/
.woodpecker/engine_unit-test.yml
+++ b/
.woodpecker/engine_unit-test.yml
@@
-1,16
+1,13
@@
# .woodpecker.yml
pipeline:
# .woodpecker.yml
pipeline:
-
hello-step
:
+
unit-test
:
image: python:3
image: python:3
+ pull: true
commands:
commands:
- - echo "Hello, this is the engine unit-test"
- build:
- image: python:3
- commands:
- - echo "Building..."
+ - echo "Prepare the engine unit-test..."
- python --version
- python --version
- a-test-step:
- image: python:3
- commands:
- - echo "
Testing
..."
- -
./bin/kconfig-hardened-check
+ - pip install --no-cache-dir coverage
+ - echo "Run unit-tests and collect coverage..."
+ - coverage run --include=kconfig_hardened_check/engine.py,kconfig_hardened_check/test_engine.py -m unittest -v -b
+ - echo "
Show the coverage report
..."
+ -
coverage report