Commit graph

15 commits

Author SHA1 Message Date
Pavel Minaev
3a9f7d64c4 Assorted fixes for Python 3.10 support:
Split test/requirements.txt into two different lists, one for py2, and the other for py3; update package versions in py3 list as needed to support py3.10.

Fix usage of deprecated threading functions getName(), setName(), isDaemon(), and currentThread().

Refactor test_invalid_breakpoints to be more declarative to handle Python version differences more easily and clearly, and fix it for py3.10.

Disable Django tests on py3.10 (#689).

Disable gevent tests on py3.10 (#688).
2021-08-06 07:12:13 -03:00
Pavel Minaev
73a4c8b712 Actually run full test matrix for DEBUGBY_TESTS_FULL=1.
Fix full run test failures.
2020-03-05 13:56:22 -08:00
Pavel Minaev
8b4c40e922 Rename ptvsd -> debugpy. 2020-01-17 11:57:13 -08:00
Pavel Minaev
bab70f7427 Make TRAVIS environment variable visible inside Tox. 2019-11-15 11:55:27 -08: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
Pavel Minaev
c03206972d Fix remaining tests to reflect the debug adapter refactoring changes.
Fix Flask and Django multiprocess tests.

Fix test logs not being captured by pytest.

Fix "import debug_me" check improperly applied in tests where it is unnecessary.

Fix some clarifying patterns not respecting the underlying pattern.

Add pattern helpers for strings: starting_with, ending_with, containing.

Move DAP test helpers to a separate module, and add a helper for frames.

Add support for line markers when setting breakpoints and matching frames.

Assorted test fixes around handling of Unicode and paths.
2019-07-11 16:19:06 -07:00
Pavel Minaev
f71f0a5b0a Tests refactoring. (#1543) 2019-06-28 10:13:00 -07:00
Pavel Minaev
8cca9fcd7a Reorganize source code to reflect the split between the adapter proper and the debug server. 2019-05-23 15:14:50 -07:00
Pavel Minaev
a26f5d0032 Fix #890: Provide option to enable logging
Implement logging framework, and use that in place of existing ad-hoc logging.
2019-03-05 10:49:51 -08:00
Pavel Minaev
b5b1e4145e
Remove code coverage. (#1043)
Remove setup.py test (doesn't work with Tox).
2018-11-19 20:59:02 -08:00
Pavel Minaev
4a146a5f77 Remove unittest-based tests from Travis and Tox. 2018-11-19 01:54:57 -08:00
Pavel Minaev
2be8ce1862 Run unittest-based tests inside Tox as well.
Disable code coverage until #1033 can be fixed.
2018-11-19 01:54:57 -08:00
Pavel Minaev
4176a5275c New and better Travis config, sans Makefile and with Tox for pytests.
Groundwork for test coverage in pytests.
2018-11-19 01:54:57 -08:00
Pavel Minaev
4c4a255056 Allow passing command line arguments to pytest via tox. 2018-11-19 01:54:57 -08:00
Moulik Aggarwal
0a0c66ca9e Automate pytest using tox (#934)
* Automate pytest using tox

* requirements.txt file updated

* Changed test_requirements.txt and tox.ini

* Added python 3.4 in tox file
2018-10-30 18:00:13 -07:00