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

feat: Add test metadata to the nodes #437

Merged
merged 3 commits into from
Jan 8, 2021
Merged

feat: Add test metadata to the nodes #437

merged 3 commits into from
Jan 8, 2021

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented Jan 7, 2021

This PR add +test attributes to the test nodes.

If a package fragment root has following attributes, then it is marked as a test root:

  • test=true
  • maven.scope includes test
  • gradle_scope includes test

When a package fragment root is a test root, then itself and all of its children will have a test attribute +test.

@jdneo jdneo added this to the 0.17.0 milestone Jan 7, 2021
@jdneo jdneo added the enhancement New feature or request label Jan 7, 2021
});

test("test Gradle container node", async function() {
assert.equal((await gradleContainer.getTreeItem()).contextValue, "java:container+gradle+uri");
assert.ok(/java:container(?=.*?\b\+gradle\b)(?=.*?\b\+uri\b)/.test((await gradleContainer.getTreeItem()).contextValue || ""));
Copy link
Member

Choose a reason for hiding this comment

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

suggest to assign human-readable names to these regular expressions...

Copy link
Member Author

Choose a reason for hiding this comment

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

These are all the regexp that can be written in the package.json to register the commands to the node.

I add some comments at header to explain the purpose of this suite.

@jdneo jdneo merged commit 0ec8146 into master Jan 8, 2021
@jdneo jdneo deleted the cs/testMetadata branch January 8, 2021 03:24
@jdneo jdneo mentioned this pull request Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants