Commit graph

12 commits

Author SHA1 Message Date
Rich Chiodo
4d86a42380
Updates from pydevd (#1706)
* Changes from pushing to pydevd

* Update some time outs to get flakey tests to pass

* Fix string failure

* String case backwards. Fixup test in pydevd

* Using callstack for exception check not sufficient

* Too restrictive on pydevd matching

* Try somethign better than just checking 'pydev'

* Retry a flakey test

* Disable flakey tests

* Another flakey test

* Increase timeout for attach

* Try upping timeout

* Up watchdog timeout

* Up some more timeouts

* Try delaying shutdown of test apps

* Don't output extra things that tests don't expect

* Fix output differences in 3.9? Not sure what that's about

* Fixup line differences in 3.9 with extra sleep

* Fix linter errors

* Fix breakpoint bugs
2024-10-21 10:17:39 -07:00
Pavel Minaev
64e1a63db4 Adjust test timeout for CI. 2019-11-19 12:05:57 -08:00
Pavel Minaev
36485c02c6 Fix #1884: Use sys.platform over platform.system() 2019-11-19 12:05:57 -08: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
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
26cc6b0a3d
Assorted test fixes for the Azure automated test run. (#1123) 2019-01-25 17:48:56 -08:00
Pavel Minaev
1bc879c16f Use pytest-xdist to speed up tests and continue running after timeout. (#1116)
* Use pytest-xdist to speed up tests and continue running after timeout.

* Use unique server ports for Django and Flask tests.
2019-01-22 16:37:00 -08:00
Karthik Nadig
9aaf937478
Removing old test code (#1088)
Removing old test code
2019-01-07 13:38:32 -08:00
Pavel Minaev
e3502cad3a Use 'thread' timeout method for pytest for more reliable timeouts on all platforms. 2018-10-11 14:01:39 -07:00
Pavel Minaev
a204460039 Refactor timeline framework to properly enforce concurrency-safe observations, and fix various issues discovered in the implementation of expectation algebra.
Refactor pattern to use == rather than 'in'.

Improve timeline logging and timestamp everything that's logged.

Do not run checks in fixture finalization if test failed.
2018-10-11 14:01:39 -07:00
Pavel Minaev
23c118aae4 Fix #811: new socket server to receive pid and port for subprocesses (#871)
* Fix #811: new socket server to receive pid and port for subprocesses

* Install test dependencies from test_requirements.txt on Travis

* Multiproc support can't handle os.fork() as implemented.

On Python 3.4+, use set_start_method('spawn') to ensure that multiprocessing module doesn't use fork.

On lower versions, skip the test.

* Restrict the multiprocessing test to Windows for now.
2018-10-11 14:01:39 -07:00
Pavel Minaev
e96275703a
Testing framework for timeline-based tests. (#857)
* Testing framework for timeline-based tests.

See pytests/helpers/timeline.md for a detailed description.

Fixes #832, and lays the groundwork for #833.

* Upgrade pip to most recent version before installing prerequisites on Travis.
2018-10-01 14:29:44 -07:00
Renamed from pytests/pytest.ini (Browse further)