Commit graph

1263 commits

Author SHA1 Message Date
Karthik Nadig
edf6926a4b
Add coverage badge 2019-10-01 10:31:15 -07:00
Graham Wheeler
4005f0b6ef Add sonar file. (#1800) 2019-09-30 23:32:27 -07:00
Pavel Minaev
75c7bcb9dd Merge branch 'master' into refactor 2019-09-30 23:14:00 -07:00
Pavel Minaev
14b0e80f2e Disable test_wait_on_abnormal_exit_enabled due to #1819. 2019-09-30 22:01:27 -07:00
Pavel Minaev
70396bd9fd Disable test_wait_on_normal_exit_enabled due to #1819. 2019-09-30 22:01:27 -07:00
Pavel Minaev
d19df683d5 Fix adapter timing out in wait-on-exit scenarios. 2019-09-30 22:01:27 -07:00
Pavel Minaev
f1f539a7f6 Fix encoding issues in pytest stdio logs. 2019-09-30 22:01:27 -07:00
Pavel Minaev
ca56bf70ba Disable Python stdio buffering when spawning processes in tests. 2019-09-30 22:01:27 -07:00
Pavel Minaev
f60cc99c8f Remove test_client_ide_from_path_mapping_linux_backend, since the corresponding product functionality has been removed. 2019-09-30 22:01:27 -07:00
Pavel Minaev
a2d58ee7c9 Use fully qualified test names for log directories to avoid name clashes. 2019-09-30 04:41:10 -07:00
Pavel Minaev
a6060d4f0c Disable test_client_ide_from_path_mapping_linux_backend due to #1812. 2019-09-30 04:41:10 -07:00
Pavel Minaev
2bf8f582b2 Disable attach_by_pid where applicable (#1810, #1811). 2019-09-30 04:41:10 -07:00
Pavel Minaev
e1557d78c5 Fix test_client_ide_from_path_mapping_linux_backend 2019-09-30 04:41:10 -07:00
Pavel Minaev
21fa914d58 Work around #1699 breaking tests that capture and verify debuggee output. 2019-09-30 04:41:10 -07:00
Pavel Minaev
c57e48262f Fix debuggee exit code handling on POSIX. 2019-09-30 04:41:10 -07:00
Pavel Minaev
1262a265b5 Fix test_client_ide_from_path_mapping_linux_backend. 2019-09-30 04:41:10 -07:00
Pavel Minaev
79ccbb950d Fix encoding issues when writing test logs. 2019-09-30 04:41:10 -07:00
Pavel Minaev
fb5e8caf5e Remove unused code, and exclude debug helpers from code coverage. 2019-09-30 04:41:10 -07:00
Pavel Minaev
4b9773e89d Also capture full pytest logs with --ptvsd-logs. 2019-09-30 04:41:10 -07:00
Pavel Minaev
897ffc566b Fix code coverage not being disabled in debuggee process in tests. 2019-09-30 04:41:10 -07:00
Pavel Minaev
5fe80934b9 Fix missing fixtures in test_client_ide_from_path_mapping_linux_backend. 2019-09-30 04:41:10 -07:00
Pavel Minaev
42cd8a8367 Fix tests for Python 2.7. 2019-09-30 04:41:10 -07:00
Pavel Minaev
c3d7d7a454 Test fixes. 2019-09-30 04:41:10 -07:00
Pavel Minaev
74a85855ad Refactor test_start_stop to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
8e6182049b Refactor test_step to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
9e631f1fd8 Refactor test_stop_on_entry to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
1bdfbdfe61 Include bitness and exclude release version number from --pytest-logs subdirectory names. 2019-09-27 18:07:50 -07:00
Pavel Minaev
ce3def77be Refactor test_system_info to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
d8e4679553 Refactor test_threads to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
87ea74ef80 Refactor test_tracing to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
b4cbae7611 Refactor test_vs_specific to use the new test API. 2019-09-27 18:07:50 -07:00
Pavel Minaev
cd5ebd1274 Add safety checks to debug test framework to prevent accidental misuse. 2019-09-27 18:07:50 -07:00
Karthik Nadig
679bda4745
Fix tests (#1806)
* Fix tests

* Addressing comments
2019-09-27 18:04:18 -07:00
Pavel Minaev
8f358d6e0f Refactor tests.debug to accommodate ptvsd.server spawning the adapter, and remove the need for "custom_client" and "custom_server" start methods.
Fix launcher not propagating debuggee exit code.

Fix attach-by-PID without explicit --log-dir overriding PTVSD_LOG_DIR (and disabling logging).

Improve test logging, with a separate directory for every test.

Various test fixes.
2019-09-26 13:20:26 -07:00
Karthik Nadig
346ebd47cd
Add adapter pid to ignore list (#1801) 2019-09-24 17:31:52 -07:00
Graham Wheeler
a0e3cbcb30
Add sonar file. (#1800) 2019-09-23 13:36:10 -07:00
Fabio Zadrozny
bb5da4e19f enable_attach() no longer hangs if called from top level of an imported module on Python 2.7. Fixes #1788 2019-09-23 16:25:27 -03:00
Fabio Zadrozny
5fcc3e4cd5 Provide api to skip terminating child processes on terminate. Fixes #1786 2019-09-23 16:21:26 -03:00
Pavel Minaev
3908192ce7 Work around import deadlock in enable_attach() on Python 2 (#1788). 2019-09-20 12:50:52 -07:00
Fabio Zadrozny
8efec2b3f6 Properly show stack trace exception for unhandled exceptions with generator. Fixes #1744 2019-09-20 16:34:25 -03:00
Karthik Nadig
d8d8f36058
Add ppid to PydevdProcessInfo (#1791)
* Add ppid to PydevdProcessInfo

* Update tests
2019-09-20 08:44:46 -07:00
Karthik Nadig
2b429c7b21
Linter remove unused threading in util 2019-09-19 10:55:56 -07:00
Karthik Nadig
636400a24a
enable_attach should spawn adapter (#1784)
* Spawn adapter in enable attach.

* Addressing comments and simplifying

* Minor tweaks
2019-09-19 10:51:21 -07:00
Pavel Minaev
0825dbeb37 Add code coverage for tests (excluding ptvsd.server and pydevd).
Fix some issues on Python 2.7.

Remove dead code.
2019-09-18 21:42:51 -07:00
Fabio Zadrozny
b7c48cc9fe Provide api to launch python executable without subprocess patching. Fixes #1711 (#1779) 2019-09-17 22:24:52 -07:00
Fabio Zadrozny
c4ef317009 Provide a way to peek at DAP messages received and sent by pydevd. Fixes #1765 (#1774) 2019-09-16 19:19:22 -07:00
Pavel Minaev
0be597c4b2 Fix #1769: Logpoint messages aren't printed for "launch"
When using launcher to redirect output, tell pydevd to not perform redirection.

Always propagate "output" events from the server to the IDE.

Fix test_log_point to not assume that logpoint output is strictly ordered wrt regular output.
2019-09-16 12:49:28 -07:00
Pavel Minaev
9692e9770f Replace --multiprocess CLI switch with --no-subprocesses to reflect multiproc debugging being on by default.
Fix test_parse_args accordingly.
2019-09-14 01:54:08 -07:00
Pavel Minaev
76a21e19d9 Rename ptvsd.server.main -> ptvsd.server.cli, for consistency with ptvsd.server.api. 2019-09-14 01:54:08 -07:00
Pavel Minaev
e729b32ee6 Fix "output" event propagation from server to only exclude stdout and stderr when launcher is present. 2019-09-13 11:05:41 -07:00