This repository was archived by the owner on Sep 8, 2022. It is now read-only.
Commit 8b5f550
committed
Fail after partest.timeout
The result `TestState` is determined when the test is run
(rather than throwing exceptions to enclosing infrastructure).
Tests which haven't completed are deemed pending.
Previously, tests that hadn't completed were deemed skipped.
But skipping tests doesn't fail the build.
Sample output with very short partest.timeout:
```
Selected 1815 tests drawn from 1 named test categories
ok 1 - run/Course-2002-01.scala
Thread pool timeout elapsed before all tests were complete!
!! 2 - run/Course-2002-03.scala [non-zero exit code]
!! 4 - run/Course-2002-02.scala [non-zero exit code]
!! 3 - run/Course-2002-04.scala [non-zero exit code]
!! 5 - run/Course-2002-05.scala [non-zero exit code]
!! 6 - run/Course-2002-06.scala [non-zero exit code]
!! 7 - run/Course-2002-08.scala [non-zero exit code]
partest --update-check \
/home/apm/projects/snytt/test/files/run/Course-2002-02.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-03.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-04.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-05.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-06.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-07.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-08.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-09.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-10.scala \
/home/apm/projects/snytt/test/files/run/Course-2002-13.scala \
/home/apm/projects/snytt/test/files/run/Meter.scala \
/home/apm/projects/snytt/test/files/run/MeterCaseClass.scala \
/home/apm/projects/snytt/test/files/run/MutableListTest.scala \
/home/apm/projects/snytt/test/files/run/NestedClasses.scala \
/home/apm/projects/snytt/test/files/run/OrderingTest.scala \
/home/apm/projects/snytt/test/files/run/Predef.readLine.scala \
[etc]
```
Incomplete tests (in the category running when interrupted) are
reported as pending:
```
ok 38 - pos/cls1.scala
Thread pool timeout elapsed before all tests were complete!
ok 39 - pos/cls.scala
!! 40 - pos/collectGenericCC.scala [compilation failed]
!! 41 - pos/chang [timed out]
ok 42 - pos/clsrefine.scala
[error] Failed: Total 41, Failed 2, Errors 0, Passed 39, Pending 1371
[error] Failed tests:
[error] partest
[error] (test/it:testOnly) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 14 s, completed Apr 12, 2017 10:37:58 AM
```1 parent f56d0ee commit 8b5f550
File tree
4 files changed
+68
-61
lines changed- src/main/scala/scala/tools/partest
- nest
4 files changed
+68
-61
lines changedLines changed: 23 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | | - | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| 140 | + | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
| |||
168 | 167 | | |
169 | 168 | | |
170 | 169 | | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | 207 | | |
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
212 | | - | |
| 211 | + | |
213 | 212 | | |
214 | 213 | | |
215 | | - | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
399 | 398 | | |
400 | 399 | | |
401 | 400 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | 401 | | |
406 | 402 | | |
407 | 403 | | |
| |||
636 | 632 | | |
637 | 633 | | |
638 | 634 | | |
639 | | - | |
| 635 | + | |
640 | 636 | | |
641 | 637 | | |
642 | 638 | | |
| |||
645 | 641 | | |
646 | 642 | | |
647 | 643 | | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
657 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
658 | 660 | | |
659 | 661 | | |
660 | 662 | | |
| |||
731 | 733 | | |
732 | 734 | | |
733 | 735 | | |
734 | | - | |
| 736 | + | |
735 | 737 | | |
736 | 738 | | |
737 | 739 | | |
| |||
770 | 772 | | |
771 | 773 | | |
772 | 774 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
| 775 | + | |
| 776 | + | |
778 | 777 | | |
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
785 | | - | |
| 784 | + | |
786 | 785 | | |
787 | 786 | | |
788 | 787 | | |
789 | 788 | | |
790 | 789 | | |
791 | 790 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
797 | 794 | | |
798 | 795 | | |
799 | | - | |
| 796 | + | |
800 | 797 | | |
801 | | - | |
| 798 | + | |
802 | 799 | | |
803 | 800 | | |
804 | | - | |
805 | | - | |
806 | | - | |
| 801 | + | |
| 802 | + | |
807 | 803 | | |
808 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
809 | 809 | | |
810 | | - | |
| 810 | + | |
| 811 | + | |
811 | 812 | | |
812 | 813 | | |
813 | | - | |
| 814 | + | |
| 815 | + | |
814 | 816 | | |
815 | 817 | | |
816 | 818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments