Repository navigation
WIP - Using new Python code for discovery of Python Tests - #4752
Closed
Don Jayamanne (DonJayamanne) wants to merge 30 commits into
Closed
Don Jayamanne (DonJayamanne) wants to merge 30 commits into
Don Jayamanne (DonJayamanne) wants to merge 30 commits into
Conversation
- 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.
- Still needs some fixing.
This reverts commit 8ad18c1.
- needs to be refactored for the new parser model - tracked by GH #4735
- Many tests will need refactoring with the new discovery API
Don Jayamanne (DonJayamanne)
marked this pull request as ready for review
March 14, 2019 00:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #4695
package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)