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

Experiment description not showing in output #375

Closed
thebinarypenguin opened this issue Jun 19, 2015 · 2 comments
Closed

Experiment description not showing in output #375

thebinarypenguin opened this issue Jun 19, 2015 · 2 comments
Assignees
Labels
bug
Milestone

Comments

@thebinarypenguin
Copy link

@thebinarypenguin thebinarypenguin commented Jun 19, 2015

I have multiple sub-experiments with the same description and only one is displayed in the output.

Code:

var Code = require('code');
var Lab  = require('lab');

var lab = exports.lab = Lab.script();

lab.experiment('Alpha', function() {

  lab.experiment('foo', function() {

    lab.test('bar', function(done) {
      done();
    });
  });
});

lab.experiment('Bravo', function() {

  lab.experiment('foo', function() {

    lab.test('bar', function(done) {
      done();
    });
  });
});

Output:

Alpha
  foo
    ✔ 1) bar (2 ms)
Bravo
    ✔ 2) bar (2 ms)


2 tests complete
Test duration: 6 ms
No global variable leaks detected
  • Notice that 'foo' does not appear under the 'Bravo' section
  • If I change the 'foo' in the "bravo' section to 'fu' or even 'foo ' it will show up
@hueniverse hueniverse added the bug label Jun 20, 2015
@joseph-norman

This comment has been minimized.

Copy link

@joseph-norman joseph-norman commented Dec 30, 2015

After running some initial tests, this looks to be confined to just console reporting - I've managed to get it printing experiment names which are the same. Would you like me to raise a PR with this fix?

@geek

This comment has been minimized.

Copy link
Member

@geek geek commented Dec 30, 2015

@joseph-norman yes please. Thank you!

@geek geek self-assigned this May 18, 2016
@geek geek added this to the 10.6.1 milestone May 19, 2016
@geek geek closed this in #587 May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.