-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMain.py
44 lines (32 loc) · 1.43 KB
/
Main.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from PositiveTests import Positive
from NegativeTests import Negative
import json
import os
class Main() :
downloadsDir = "./Downloads"
if not os.path.exists(downloadsDir):
print("Creating Downloads dir since it does not exist")
os.makedirs(downloadsDir)
print("\nRUNNING POSITIVE TESTS\n")
positive = Positive()
SRTestDictPos, repoTestDictPos, minerTestDictPos = positive.positiveTestRun()
print("\nRUNNING NEGATIVE TESTS\n")
negative = Negative()
repoTestDictNeg, minerTestDictNeg = negative.negativeTestRun()
# ------------------------ PRINT POSITIVE TEST RESULTS --------------------------
print("\n\nPOSITIVE SERVICE REGISTRY TEST RESULTS: \n")
SRTestDictPretty = json.dumps(SRTestDictPos, indent=2)
print(SRTestDictPretty)
print("\n\nPOSITIVE REPOSITORY TEST RESULTS: \n")
repoTestDictPretty = json.dumps(repoTestDictPos, indent=2)
print(repoTestDictPretty)
print("\n\nPOSITIVE MINER TEST RESULTS: \n")
minerTestDictPretty = json.dumps(minerTestDictPos, indent=2)
print(minerTestDictPretty)
# ------------------------ PRINT TEST RESULTS --------------------------
print("\n\nNEGATIVE REPOSITORY TEST RESULTS: \n")
repoTestDictPretty = json.dumps(repoTestDictNeg, indent=2)
print(repoTestDictPretty)
print("\n\nNEGATIVE MINER TEST RESULTS: \n")
minerTestDictPretty = json.dumps(minerTestDictNeg, indent=2)
print(minerTestDictPretty)