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 1
1
name : Java CI
2
2
3
- on : [ push, workflow_dispatch ]
3
+ on :
4
+ - push
5
+ - workflow_dispatch
6
+ # run every hour
7
+ - schedule :
8
+ - cron : ' 0 * * * *'
4
9
5
10
env :
6
11
SPP_PROBE_PLATFORM_HOST : " https://cloud.sourceplus.plus"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
import org .junit .jupiter .api .Disabled ;
4
4
import org .junit .jupiter .api .Test ;
5
5
6
- public class TestStabilityTest {
6
+ public class TestStabilityIndicator {
7
7
8
8
@ Test
9
- public void success100Percent () {
9
+ public void success () {
10
10
}
11
11
12
12
@ Test
@@ -21,6 +21,13 @@ public void fail50Percent() {
21
21
}
22
22
}
23
23
24
+ @ Test
25
+ public void fail25Percent () {
26
+ if (Math .random () > 0.75 ) {
27
+ throw new RuntimeException ("fail 25%" );
28
+ }
29
+ }
30
+
24
31
@ Disabled
25
32
@ Test
26
33
public void neverExecuted () {
You can’t perform that action at this time.
0 commit comments