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

Jasmine tests are identified wrong in TeamCity #17

@stevebroshar

Description

@stevebroshar

I'm using jasmine where tests are named/identified based on the test description plus each containing describe block description. For example:

describe('dockDirective', function(){
  describe('click-handler', function(){
    it('should set window active', ...)
  });
});

defines the test "dockDirective click-handler should set window active".

But, when I run the test in TeamCity with Karma, the test is identified as "should set window active (dockDirective click-handler.PhantomJS 1.9.0 (Windows 7))". The information (plus extra) is in there, but in the wrong order. It's hard to read.

I ran the same command outside of TeamCity and see that the raw output is like this:

##teamcity[testSuiteStarted name='dockDirective click-handler.PhantomJS 1.9.0 (Windows 7)']
##teamcity[testStarted name='should set window active']

Seems that to make it look right in TC, the output should include the suite text in each test name like this:

##teamcity[testSuiteStarted name='dockDirective click-handler.PhantomJS 1.9.0 (Windows 7)']
##teamcity[testStarted name='dockDirective click-handler should set window active']

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions