@egis/build-tools 11.4.3 → 11.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11682,6 +11682,10 @@ route-recognizer@tildeio/route-recognizer#~0.1.9:
|
|
|
11682
11682
|
version "0.1.11"
|
|
11683
11683
|
resolved "https://codeload.github.com/tildeio/route-recognizer/tar.gz/0979dfe5fe14bcc50d8c7573af5c97a2f260876e"
|
|
11684
11684
|
|
|
11685
|
+
ruler@MrFrankel/ruler#~1.0.1:
|
|
11686
|
+
version "1.0.1"
|
|
11687
|
+
resolved "https://codeload.github.com/MrFrankel/ruler/tar.gz/8877b71541bd637392cb559b4e9e6491d1753014"
|
|
11688
|
+
|
|
11685
11689
|
run-async@^0.1.0:
|
|
11686
11690
|
version "0.1.0"
|
|
11687
11691
|
resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
|
package/package.json
CHANGED
|
@@ -12,35 +12,36 @@ MAX_ERRORS=int(sys.argv[3])
|
|
|
12
12
|
failures = 0
|
|
13
13
|
errors = 0
|
|
14
14
|
tests = 0
|
|
15
|
-
print
|
|
15
|
+
print("MIN_TESTS=%s MAX_FAIL=%s MAX_ERRORS=%s" % (MIN_TESTS, MAX_FAIL, MAX_ERRORS))
|
|
16
|
+
|
|
16
17
|
for file in glob.glob('%s/*.xml' % REPORTS):
|
|
17
18
|
try:
|
|
18
19
|
e = xml.etree.ElementTree.parse(file).getroot()
|
|
19
20
|
error= int(e.get('errors'))
|
|
20
21
|
if error > 0:
|
|
21
|
-
print
|
|
22
|
+
print(file + " errors ")
|
|
22
23
|
failures += int(e.get('failures'))
|
|
23
24
|
errors += int(e.get('errors'))
|
|
24
25
|
tests += int(e.get('tests'))
|
|
25
26
|
for tc in e.iter('testcase'):
|
|
26
27
|
tests -= len(tc.findall('skipped'))
|
|
27
|
-
except Exception,e:
|
|
28
|
+
except (Exception, e) as errors:
|
|
28
29
|
errors += 1
|
|
29
|
-
print
|
|
30
|
+
print("Failed to parse " + file)
|
|
30
31
|
|
|
31
|
-
print
|
|
32
|
+
print("tests=%s failures=%s errors=%s" % (tests, failures, errors))
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
if (errors > MAX_ERRORS):
|
|
35
|
-
print
|
|
36
|
+
print("too many errors")
|
|
36
37
|
|
|
37
38
|
if (tests < MIN_TESTS):
|
|
38
|
-
print
|
|
39
|
+
print("too few tests run %s < %s " % (tests, MIN_TESTS))
|
|
39
40
|
sys.exit(1)
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
if (failures > MAX_FAIL):
|
|
43
|
-
print
|
|
44
|
+
print("too many failures")
|
|
44
45
|
sys.exit(1)
|
|
45
46
|
|
|
46
47
|
sys.exit(0)
|