File tree Expand file tree Collapse file tree 3 files changed +15
-26
lines changed
src/test/java/spp/demo/test Expand file tree Collapse file tree 3 files changed +15
-26
lines changed Original file line number Diff line number Diff line change 11name : Java CI
22
3- on : [ push, workflow_dispatch ]
3+ on :
4+ - push
5+ - workflow_dispatch
6+ # run every hour
7+ - schedule :
8+ - cron : ' 0 * * * *'
49
510env :
611 SPP_PROBE_PLATFORM_HOST : " https://cloud.sourceplus.plus"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Disabled ;
44import org .junit .jupiter .api .Test ;
55
6- public class TestStabilityTest {
6+ public class TestStabilityIndicator {
77
88 @ Test
9- public void success100Percent () {
9+ public void success () {
1010 }
1111
1212 @ Test
@@ -21,6 +21,13 @@ public void fail50Percent() {
2121 }
2222 }
2323
24+ @ Test
25+ public void fail25Percent () {
26+ if (Math .random () > 0.75 ) {
27+ throw new RuntimeException ("fail 25%" );
28+ }
29+ }
30+
2431 @ Disabled
2532 @ Test
2633 public void neverExecuted () {
You can’t perform that action at this time.
0 commit comments