Skip to content

WIP - Using new Python code for discovery of Python Tests - #4752

Closed
Don Jayamanne (DonJayamanne) wants to merge 30 commits into
microsoft:masterfrom
DonJayamanne:issueTestExplorer4695
Closed

Don Jayamanne (DonJayamanne) wants to merge 30 commits into
microsoft:masterfrom
DonJayamanne:issueTestExplorer4695

Conversation

@DonJayamanne

Copy link
Copy Markdown

For #4695

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • [n/a] 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.
Derek Keeler (d3r3kk) and others added 30 commits March 13, 2019 16:55
- first pass of the new test discovery API exec
- trying to not change anything outside of unittest
  - particularly outside of pytest
- Make the run_adapter placeholder return an array
- use JSON.Parse on the returned result in parser
- Add a script that just spits out test data
- Use python.pythonPath for the exe path
- Put the run_adapter.py script as the first arg to the process
- Add the rest of the necessary args to the script.
- Add `discover` method alongside `run` method
- Focusing on running discovery via the new Python adapter
- This will be the call for each test framework going forward
- New data type expected from Python `DiscoveredTestData`
- New class to transform from DiscoveredTestData to Tests
- Updated `pytest/parserService.ts` to use this new method of discovery
- A bit of a logic re-jig
- start testing to ensure the new discovery works the same as the old
- Fix up test data for path case variance.
- Fix bug with parser throwing on empty input
- Tests for the discoveredTests
- Tests fixed for the discoveryService
- simplify tests for the parserService
- remove a non-unit test from running during unit test runs
- Use `exec` over `execObservable` in running Python for test discovery.
- Create a new interface for test discovery runner.
- needs to be refactored for the new parser model
- tracked by GH #4735
- Many tests will need refactoring with the new discovery API
@DonJayamanne Don Jayamanne (DonJayamanne) changed the title Using new Python code for discovery of Python Tests Mar 14, 2019
@DonJayamanne
Don Jayamanne (DonJayamanne) marked this pull request as ready for review March 14, 2019 00:11
@DonJayamanne
Don Jayamanne (DonJayamanne) deleted the issueTestExplorer4695 branch May 24, 2019 20:25
@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

2 participants