Pavel Minaev
26cc6b0a3d
Assorted test fixes for the Azure automated test run. ( #1123 )
2019-01-25 17:48:56 -08:00
Fabio Zadrozny
92218e7c45
Fix issue initializing matplotlib and error when thread is not found. #1041 ( #1121 )
2019-01-24 10:27:59 -08:00
Karthik Nadig
40cbf494a2
Pass 'removed' instead of 'remove' to on_breakpoints_changed. #1118 ( #1120 )
2019-01-24 09:37:18 -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
a9df5bfeeb
Map '.' in remoteRoot to current working dir ( #1111 )
...
* Map to cwd when remote root is '.'
* Add test for '.' remote root
* Move remote root resolution to a separate function
* print local path and frames in test
2019-01-20 21:55:47 -08:00
Fabio Zadrozny
944fdd9ab4
Refactored structure to find frames. #1101 ( #1107 )
2019-01-20 20:49:37 -08:00
Karthik Nadig
4877164466
Fixes issue with building windows wheels ( #1098 )
...
* Try building ABI specific wheels
* Fix typo
* Fix another typo
* Skip cython rebuild
* Try some tweaks
* Revert "Skip cython rebuild"
This reverts commit 3ba6002e9cc1715d9202ec778adc52e6dc7b1732.
* More tweaks
* Fix pathlib install
* Disable 2.7 builds
* Try pure python builds
* Tweak and test pure builds
* Tweak pure builds
* Add universal wheel
* Try universal wheel
* Attempt to fix pyds
* Try re adding platform
* Keep install structure between builds
* Split how we build wheels for windows
* Fix broken sys argv
* Fix setup platform
* Adding some logging for filter
* Fix platform build script
* Ensure ABI tag
* Fix platform abi
* Test platform build of wheels
* fix platform metadata
* Log pyd file generation
* Log dir location for pyd
* recursively include *win*.pyd
* limit to pydevd pyds
* tweak manifest
* remove unused code
* restore manifest changes
* fix proj path
* Remove logging
* Add script for linux wheels (#3 )
* Add linux builds
* Simplify building bdist and sdist wheels.
* Try with frame eval off
* Ensure imports
* Add instructions to build linux wheels locally.
2019-01-18 10:26:55 -08:00
Pavel Minaev
f3289d040d
Fix #1108 : Launch module from VSC broken in master ( #1109 )
...
Add '' to sys.path for -m and -c.
Make sure that sys.argv is properly updated by main(), even if input is a different list.
2019-01-17 15:02:36 -08:00
Karthik Nadig
72c549c6f5
Restrict wait on exit tests to launch only ( #1104 )
2019-01-17 11:02:33 -08:00
Pavel Minaev
8f68b3d359
Port refactored command line parser to master ( #1105 )
...
* Fix #1090 : Port refactored command line parser to master
* Fix #921 : Double dash in program arguments gets caught and crashes pydevd
* Fix #1013 : -h/--help arg to program instead shows help for interpreter
2019-01-16 20:26:39 -08:00
Fabio Zadrozny
d4bd982c8a
Extracted pydevd API and using DAP for some messages. ( #1097 )
...
* Create pydevd API to be used with json messages.
* Set brekpoints and options using the Debug Adapter Protocol.
* Remove bp_map which is now unused.
2019-01-16 19:44:17 -08:00
Fabio Zadrozny
274cf886ce
Add support for step over my code / step return my code to pydevd. Fixes #477 . ( #1091 )
2019-01-09 20:41:53 -08:00
Karthik Nadig
9aaf937478
Removing old test code ( #1088 )
...
Removing old test code
2019-01-07 13:38:32 -08:00
Jeff Rimko
a6ebc3e3a6
Attempt to fix exceptions thrown while debugging ( #1084 )
...
* Added try-catch to handle instances when exitcode is not an integer, e.g. usage info string.
* Added try-catch to prevent exception thrown when flush=True in print().
* Reverted changes around the flush() call; fabioz pointed out that newer versions of Python have fixed this issue. Updated the SystemExit code checking logic to better catch possible conditions.
2019-01-04 10:26:37 -08:00
Karthik Nadig
b83be58ab4
minor test fixes ( #1086 )
2019-01-03 15:28:11 -08:00
Fabio Zadrozny
cb2d217f79
Fixes issues in frame eval ( #1082 , #1083 ). ( #1085 )
2019-01-03 13:24:16 -08:00
Fabio Zadrozny
5af4b61c75
Fixes #987 (nonetype), #1000 (completions), #1077 (<frozen>), #1072 (builtins has no interpreter) ( #1081 )
...
* Change completions command to Debug Adapter Protocol. Fixes #1000
* Fixed 'NoneType' object is not callable. Fixes #987
2019-01-02 11:26:50 -08:00
Karthik Nadig
2484f7b1bf
Fixes AttributeError in exit handler when using jython. ( #1079 )
2018-12-21 13:38:32 -08:00
Fabio Zadrozny
1dd4c0f75d
Provide json as the output of messages from pydevd -- initial proof of concept dealing with only a couple of messages ( #1039 ). ( #1070 )
2018-12-20 14:01:38 -08:00
Fabio Zadrozny
4950b1fa64
Properly launch modules in current directory even if it's not added to the PYTHONPATH. Fixes #1010 ( #1069 )
2018-12-10 10:17:32 -08:00
Pavel Minaev
8ea0421711
Fix #1037 : Setting breakpoint fails on Python files containing non-ASCII characters ( #1068 )
...
Fix #1066 : Fetching remote source for a file with a Unicode name fails on 2.7
2018-12-06 16:36:44 -08:00
Fabio Zadrozny
3c83d6be7e
Re-enable frame eval mode in the debugger. #768 ( #989 )
2018-12-06 11:41:48 -08:00
Pavel Minaev
fb5e7ac162
Fix #874 : Watch window freezes the system when Name contains non-ASCII symbols ( #1065 )
...
Fix #1064 : test_module_events is failing on Windows
Use Unicode literals throughout wrapper.py, and fix pathname handling.
Add evaluation test for Unicode character in an expression.
Fix path pattern such that its __eq__ is used deterministically.
2018-12-05 19:59:17 -08:00
Karthik Nadig
6f0f7d24fc
More tests ( #1057 )
...
* Add path mapping tests
* Remove unnessary debug option
* Add continue on disconnect tests
* Add exit on disconnect tests
* Fix test failures
* Add test for stack format
* Add package launch test
* Add test for module events
* Add ANY.path pattern matching
* Change how we test exit on disconnect for launch
2018-11-30 13:26:37 -08:00
Karthik Nadig
a8f7f31489
Tests and fixes ( #1050 )
...
* Add 3.7 breakpoint test
* Add attach tests
* Fixes issue with using conditional breakpoints and logpoints together
* Skip tests affected by the NoneType issue 987
2018-11-21 19:54:41 -08:00
Karthik Nadig
21560cc4ae
More pytests ( #1045 )
...
* Fix indent
* Added cross-file breakpoint
* Add error in condition tests.
* Add log point tests
* Loosen output analysis due to issue 1028
* Add exception tests
* Cleanup comments
* Few tweaks
* Remove commented code
2018-11-20 01:14:50 -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
cd5645da0d
Fix #1035 : Pattern matching fails sporadically
...
Remove cruft from pattern matching code.
2018-11-19 01:54:57 -08:00
Pavel Minaev
7c07801024
Workaround for #1028 in test_thread_count.
2018-11-19 01:54:57 -08:00
Pavel Minaev
ce16aa3e93
Move tox-travis from test_requirements.txt to .travis.yml.
2018-11-19 01:54:57 -08:00
Pavel Minaev
4a146a5f77
Remove unittest-based tests from Travis and Tox.
2018-11-19 01:54:57 -08:00
Pavel Minaev
bd2b4cd88e
Install Tox on Travis before trying to run it.
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
c857cb02b7
Fix code coverage upload.
2018-11-19 01:54:57 -08:00
Pavel Minaev
ca5d822339
Remove unneeded tests.
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
a8befaf680
Fix .flake8 for ptvsd/ -> src/ptvsd/ move, and exclude more directories that shouldn't be linted.
2018-11-19 01:54:57 -08:00
Pavel Minaev
c1a5a76f98
Fix signing for ptvsd/ -> src/ptvsd/ move.
2018-11-19 01:54:57 -08:00
Pavel Minaev
a2bdacbe9c
Move ptvsd/ to src/ptvsd/.
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
Karthik Nadig
ae711d26b6
Migrate functional tests: part 1 ( #1030 )
...
* Enable import ptvsd test parameter on windows
* Add copyright header
* Add output tests
* Add multi thread tests
* Add return value tests
* Remove debug_session fixture from newer tests
* Fix linter
* Add args tests
* Add break into debugger tests
* Add conditional breakpoint tests
* Fix linter
* Tweak start_method fixture
* Address comments
2018-11-18 02:33:28 -08:00
Pavel Minaev
cac64c691e
Fix linting issues.
2018-11-16 23:48:39 -08:00
Pavel Minaev
b26c9cfefa
Remove waiting on 'exited' in test_start_stop, since it might be missing.
2018-11-16 23:48:39 -08:00
Pavel Minaev
9b580b7626
Actually remove debug_session() fixture.
...
Make the order of run_as and start_method arguments consistent for all tests.
2018-11-16 23:48:39 -08:00
Pavel Minaev
4877dee9ed
Fix : #1027 Spurious output in test runs
...
Get rid of debug_session fixture, and construct session objects explicitly in test. Use with-statement to manage session lifetime.
Minor test fixes.
2018-11-16 23:48:39 -08:00
Pavel Minaev
43d35100d1
Use wait_for_response(freeze=False) as needed to observe responses without blocking on them.
...
Use ptvsd.break_into_debugger() instead of regular breakpoints in non-breakpoint tests.
Use wait_for_thread_stop() where applicable.
2018-11-16 23:48:39 -08:00
Pavel Minaev
91680f9918
Fix race between recorder thread and wait_until.
2018-11-16 23:48:39 -08:00
Pavel Minaev
247c20a5a4
Use backchannel instead of output events to drive tests.
...
Use ptvsd.break_into_debugger instead of explicit breakpoints.
2018-11-16 23:48:39 -08:00
Pavel Minaev
7a7de048bf
Add extra check in test_timeline::test_after
2018-11-16 23:48:39 -08:00
Pavel Minaev
edf6b082a9
Refactor SequencedExpectation members for more clarity.
2018-11-16 23:48:39 -08:00