Use tox testenv listing for generating the tree view#34
Open
s-hemer wants to merge 5 commits intoThe-Compiler:mainfrom
Open
Use tox testenv listing for generating the tree view#34s-hemer wants to merge 5 commits intoThe-Compiler:mainfrom
s-hemer wants to merge 5 commits intoThe-Compiler:mainfrom
Conversation
Owner
|
Thanks! I still think it'd be a cleaner solution to open a new terminal for every project directory and run tox there. I'll need to take a closer look, but I'm a bit busy this and next week, so it might take a bit. |
Author
|
Don't hurry, I just wanted to get that out as I will also have to move to something else. Yet, don't want to loose it. |
If multiple projects with tox.ini's are present in the workspace, the test tree view contains just multiple 'tox.ini' entrys with no visible way to differentiate. Use the description field and fill with project/folder name. Cleaned some trailing whitespaces while at it.
toxTaskProvider may re-use even more from run.ts. To get a better overview, at least collect the tox commands at a common place there. Use the same way to split the output of tox's testenv here as in run.ts Did not adopt the indentation style of toxTaskProvider (used four spaces instead of tabs) for cleaner diff. Signed-off-by: Steffen Hemer <s.hemer@phytec.de>
…here Instead of having two code sections with the same purpose (one with a more elaborate error handling), fuse them to one.
listed testenv Instead of parsing the tox.ini file for testenv with a regex, testController uses the output from tox and tries to locate the listed testenvs (with the regex) within the file to add the test task marker. Additionally, it adds all testenvs that could not be located (i.e. the ones from permutations) to line zero. This lets them at least appear correctly in the tree view.
To run tests from tox.ini files from different projects, create (and re-use) separate terminals. Terminal identifier uses label and description of root test item (the tox.ini).
Author
|
I moved the additional description to the description field of testItem (makes sense) and just use separate terminals now (named after the root test item's label and description). |
|
TY for working on this! |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is my suggestion to solve #33. It also cleans up some stuff. The last commit is subject for further discussions, works for my use-case but I will try to create a more generic test setup.