Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Add command: "Go: Benchmark package." #1898

Merged
merged 4 commits into from
Aug 30, 2018

Conversation

biancarosa
Copy link
Contributor

This PR adds a new command called "go.benchmark.package" that runs benchmark tests for the current package.
I did this adding a new isBenchmark flag to the testCurrentPackage file.
Also, according to this docs, the -bench flag doesn't have a default value and by default doesn't run any tests. I've edited the testConfig to send . when it is running for a package.

@msftclas
Copy link

msftclas commented Aug 30, 2018

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

Awesome!

package.json Outdated
{
"command": "go.benchmark.package",
"title": "Go: Benchmark Package",
"description": "Runs all unit tests in the package of the current file."
Copy link
Contributor

Choose a reason for hiding this comment

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

Runs all benchmarks? Otherwise, things look great!

@ramya-rao-a ramya-rao-a merged commit f1c5bc3 into microsoft:master Aug 30, 2018
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