Add examples to README #27

Closed
fcarstens opened this Issue Aug 20, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@fcarstens
Contributor

fcarstens commented Aug 20, 2015

Add examples to README as discussed in #25 (comment).

@flore77 flore77 referenced this issue Aug 1, 2016

Merged

Update spec #84

@flore77

This comment has been minimized.

Show comment
Hide comment
@flore77

flore77 Aug 1, 2016

Contributor

@jzaefferer can you please explain better what kind of example should be added to the README?

Contributor

flore77 commented Aug 1, 2016

@jzaefferer can you please explain better what kind of example should be added to the README?

@jzaefferer

This comment has been minimized.

Show comment
Hide comment
@jzaefferer

jzaefferer Aug 3, 2016

Contributor

So about a year ago I wrote:

we should have at least two examples, one with a flat and one with a multiple levels deep nested structure. Could be addressed in a separate PR, please file an issue in that case.

I'm thinking something like this:

describe("bla", function() {
  it("foo", ...)
})

will produce, among others, a runEnd event like this:

{
  name: ?
  suites: [...],
  tests: [...],
  status: "passed",
  ...

Then have a variation of that with nested suites.

When we discussed this briefly at the meeting on Monday, I thought that including a kind reference implementation, based on the one we wrote for browserstack-runner, could also be a useful example, showing how to write a reporter using the adapters (and eventually native implementations).

Contributor

jzaefferer commented Aug 3, 2016

So about a year ago I wrote:

we should have at least two examples, one with a flat and one with a multiple levels deep nested structure. Could be addressed in a separate PR, please file an issue in that case.

I'm thinking something like this:

describe("bla", function() {
  it("foo", ...)
})

will produce, among others, a runEnd event like this:

{
  name: ?
  suites: [...],
  tests: [...],
  status: "passed",
  ...

Then have a variation of that with nested suites.

When we discussed this briefly at the meeting on Monday, I thought that including a kind reference implementation, based on the one we wrote for browserstack-runner, could also be a useful example, showing how to write a reporter using the adapters (and eventually native implementations).

@flore77 flore77 referenced this issue Aug 8, 2016

Merged

Add examples #89

@flore77 flore77 closed this in #89 Aug 19, 2016

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