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

Provide metric statistics in JSON reporter like in Plain reporter #285

Closed
stefanjudis opened this issue Apr 9, 2014 · 4 comments
Closed
Assignees
Milestone

Comments

@stefanjudis
Copy link
Contributor

Hey. :)

Just wanted to drop the multiple-runs functionality in grunt-phantomas to use your new implementation. Unfortunately it's missing the generation of metric statistics (median, average, ...)

This is kind of essential for grunt-phantomas.

Current result :

[
  {
    // detailed run information here
  },
  ...
]

Desired result :

{
  runs : [
    {
      // detailed run information here
    },
    ...
  ],
  stats : {
    metricA : {
      average : 100,
      median : 100,
      ...
    }
  }
}

Thanks. :)

@macbre
Copy link
Owner

macbre commented May 15, 2014

New format of JSON formatted results in multiple runs mode:

{
  "runs" : [
    {
    },
    {
    }
  ],
  "stats": {
    "requests": {
      "Min": 3,
      "Max": 3,
      "Average": 3,
      "Median": 3,
      "StdDev": 0
    }
   }
}

@stefanjudis
Copy link
Contributor Author

Capitalized Min, Max, ...? Why so?

@macbre
Copy link
Owner

macbre commented May 15, 2014

That's how plain reporter had it implemented. But good point, I'll make them lowercase.

@stefanjudis
Copy link
Contributor Author

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants