Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest subtests under their function in the test explorer. #4668

Merged

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Mar 7, 2019

(for #4503)

[WARNING} The approach I took is a bit of a hack. Changing the structure of the Tests data is a huge undertaking. So I tucked the necessary UI-related data in as a tag-along. :)

I'm addressing telemetry in a follow-up PR.

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • [ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • The wiki is updated with any design decisions/details.

@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #4668 into master will increase coverage by 1%.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #4668   +/-   ##
======================================
+ Coverage      77%     77%   +1%     
======================================
  Files         447     447           
  Lines       21484   21534   +50     
  Branches     3532    3545   +13     
======================================
+ Hits        16456   16506   +50     
  Misses       5024    5024           
  Partials        4       4
Flag Coverage Δ
#Linux 66% <86%> (+1%) ⬆️
#Windows 66% <86%> (ø) ⬇️
#macOS 66% <86%> (+1%) ⬆️

Copy link

@DonJayamanne DonJayamanne left a comment

Choose a reason for hiding this comment

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

Will review later.

@@ -2078,5 +2078,28 @@ export const pytestScenarioData: PytestDiscoveryScenario[] =
"",
"======================== no tests ran in 0.36 seconds ========================="
]
},
{
pytest_version_spec: ">= 4.1",

Choose a reason for hiding this comment

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

Aren't we throwing away all of this code, with the merge of the python code for discovery?
If we are, I hope we have similar test scenarios in the python tests

@ericsnowcurrently
Copy link
Member Author

@DonJayamanne, You already reviewed this. The only new bit is the tests for TestTreeViewProvider.

@d3r3kk d3r3kk merged commit 4f7688c into microsoft:master Mar 13, 2019
@ericsnowcurrently ericsnowcurrently deleted the test-explorer-nested-subtests branch March 13, 2019 19:32
@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 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.

3 participants