Skip to content

Conversation

@DonJayamanne
Copy link

Fixes #1109

This pull request:

  • Has a title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)
  • Has unit tests & code coverage is not adversely affected (within reason)
  • Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
  • Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)

debugClient.assertStoppedLocation('breakpoint', breakpointLocation)
]);

//Do not remove this, this is required to ensure PTVSD is ready to accept other requests.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In .NET there is a notion of a unit test 'cleanup' method that runs after each unit test method. Aside from the problems that kind of architecture causes (removes the clarity of flow from the unit test a bit) it can be a very useful tool in cases like this where something must run after a test completes.

Does this unit test framework have that available?

Copy link
Author

@DonJayamanne DonJayamanne May 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please look at teardown (towards the top of the file).

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok, I see what's going on then. Some tests require the code you've added in this PR, others do not. There is a 'wait' added after each test to ensure things get back to where they need to be before the next test runs.

Is this a source of test reliability problems in the past?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope

Copy link

@d3r3kk d3r3kk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. Please have a look at my comment and let me know if that is something worth pursuing.

@DonJayamanne DonJayamanne merged commit 99b3b84 into microsoft:master May 7, 2018
@DonJayamanne DonJayamanne deleted the issue1109 branch June 20, 2018 03:14
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for evaluating expressions in experimental debugger

2 participants