Skip to content

Commit 98d555c

Browse files
committed
test: 重构单元测试相关代码,支持覆盖率等特性
1 parent 7188493 commit 98d555c

12 files changed

Lines changed: 2946 additions & 18 deletions

.coverage

52 KB
Binary file not shown.

.coveragerc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
[run]
3+
omit = tests/*
4+
source = bgesdk
5+
6+
[paths]
7+
source = bgesdk

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ wheel:
1515

1616
# 单元测试
1717
test:
18+
pip install pytest pytest-cov; \
1819
chmod +x ./test_env.sh; \
1920
./test_env.sh
2021

0 commit comments

Comments
 (0)