FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonVSCode/pythonFiles/PythonTools/testlauncher.py at master · gyanxue/pythonVSCode · GitHub
gyanxue
/
pythonVSCode
Public
forked from
DonJayamanne/pythonVSCode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonVSCode
/
pythonFiles
/
PythonTools
/
testlauncher.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (30 loc) · 879 Bytes
Breadcrumbs
pythonVSCode
/
pythonFiles
/
PythonTools
/
testlauncher.py
Copy path
File metadata and controls
35 lines (30 loc) · 879 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
27
28
29
30
31
32
33
34
35
def
main
():
import
os
import
sys
from
ptvsd
.
visualstudio_py_debugger
import
DONT_DEBUG
,
DEBUG_ENTRYPOINTS
,
get_code
from
ptvsd
.
attach_server
import
DEFAULT_PORT
,
enable_attach
,
wait_for_attach
sys
.
path
[
0
]
=
os
.
getcwd
()
os
.
chdir
(
sys
.
argv
[
1
])
secret
=
sys
.
argv
[
2
]
port
=
int
(
sys
.
argv
[
3
])
testFx
=
sys
.
argv
[
4
]
args
=
sys
.
argv
[
5
:]
DONT_DEBUG
.
append
(
os
.
path
.
normcase
(
__file__
))
DEBUG_ENTRYPOINTS
.
add
(
get_code
(
main
))
enable_attach
(
secret
, (
'127.0.0.1'
,
port
),
redirect_output
=
False
)
sys
.
stdout
.
flush
()
print
(
'READY'
)
sys
.
stdout
.
flush
()
wait_for_attach
()
try
:
if
testFx
==
'pytest'
:
import
pytest
pytest
.
main
(
args
)
else
:
import
nose
nose
.
run
(
argv
=
args
)
sys
.
exit
()
finally
:
pass
if
__name__
==
'__main__'
:
main
()
Back
|
FazBrowse Home
|
New Git URL