Commit 1a1df97
authored
ci(core): 在 push/PR 上运行 core 单元测试 (#529)
* ci(core): run core unit tests on push/PR and add JaCoCo report
Adds .github/workflows/core-test.yml to run `mvn test -pl core` and
upload the JaCoCo report. Adds the JaCoCo plugin to core/pom.xml in
report-only mode (no coverage gate).
* ci(core): drop JaCoCo, fix core unit test fork crash
- Remove jacoco-maven-plugin from core/pom.xml and the coverage upload
step from the workflow; keep only `mvn test -pl core`.
- Add surefire config pointing benchmark-conf at the repo-root config
dir so ConfigDescriptor finds function.xml/config.properties. Under
surefire the fork's working dir is core/, where these files don't
exist, so Config.initInnerFunction() did System.exit(0) and crashed
the forked VM ("terminated without properly saying goodbye").
- Fix stale OPERATION_PROPORTION in OperationControllerTest (11 -> 13
values) to match the current count of normal operations.1 parent 4703643 commit 1a1df97
3 files changed
Lines changed: 48 additions & 3 deletions
File tree
- .github/workflows
- core
- src/test/java/cn/edu/tsinghua/iot/benchmark/client
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
118 | 138 | | |
119 | 139 | | |
120 | 140 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments