FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnrealEnginePython/run_tests.py at develop · 20tab/UnrealEnginePython · GitHub
20tab
UnrealEnginePython
Repository navigation
Code
Issues
338
(338)
Pull requests
32
(32)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnrealEnginePython
/
run_tests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (20 loc) · 664 Bytes
Breadcrumbs
UnrealEnginePython
/
run_tests.py
Copy path
File metadata and controls
26 lines (20 loc) · 664 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
import
sys
import
unittest
import
unreal_engine
as
ue
import
os
.
path
# ue.sandbox_exec(ue.find_plugin('UnrealEnginePython').get_base_dir() + '/run_tests.py')
# setup classic stdout/stderr
class
UnrealEngineOutput
:
def
__init__
(
self
,
logger
):
self
.
logger
=
logger
def
write
(
self
,
buf
):
self
.
logger
(
buf
)
def
flush
(
self
):
return
sys
.
stdout
=
UnrealEngineOutput
(
ue
.
log
)
sys
.
stderr
=
UnrealEngineOutput
(
ue
.
log_error
)
uep_base
=
ue
.
find_plugin
(
'UnrealEnginePython'
).
get_base_dir
()
loader
=
unittest
.
TestLoader
()
tests
=
loader
.
discover
(
os
.
path
.
join
(
uep_base
,
'tests'
))
runner
=
unittest
.
runner
.
TextTestRunner
()
runner
.
run
(
tests
)
Back
|
FazBrowse Home
|
New Git URL