-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.py
More file actions
50 lines (46 loc) · 1.21 KB
/
tests.py
File metadata and controls
50 lines (46 loc) · 1.21 KB
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
45
46
47
48
49
50
import shutil
import src.initialize as init
import src.print as print
import os
def startTest():
frameworks = [
"Vanilla",
"Svelte",
"React",
"Vue",
"Preact",
"Lit",
"Solid",
"Ember",
"Qwik",
"Amber",
"Marko",
]
variant = [
"JavaScript",
"TypeScript",
]
for framework in frameworks:
for v in variant:
print.log(f"Testing {framework} {v}...")
init.start(
"Project Test",
"project-test",
"io.github.pinpointtools",
"GTK",
framework,
v,
"pnpm",
True,
)
shutil.rmtree("project-test", ignore_errors=True)
print.success(f"{framework} with {v} successfully tested.")
if __name__ == "__main__":
print.warning("THIS IS MEANT FOR TESTING ONLY. DO NOT USE THIS IN PRODUCTION.")
print.warning("THIS WILL TAKE A TOLL OF YOUR INTERNET. SO BE WEARY.")
try:
startTest()
print.success("All tests completed successfully.")
except Exception as e:
print.error(e)
os.exit(1)