Skip to content

Agent works wrong in parallel mode #49

@Invictum

Description

@Invictum

Seems like agent works not as expected in parallel mode.

  1. Suites structure is wrong in RP

Test files:

// one.test.js
describe('block-one', function () {
    it('one-one', function () {
        
    })
    it('one-two', function () {

    })
})

// two.test.js
const rp = require('@reportportal/agent-js-mocha/lib/publicReportingAPI');

describe('block-two', function () {
    it('two-one', function () {
        rp.log('INFO', `two-one, pid: ${process.pid}`)
    })
    it('two-two', function () {
        rp.info(`two-two, pid: ${process.pid}`)
    });
})

With parallel flag reporter produces launch with 4 tests and ignores suites defined in describe block

Launch
.
+-- one-one
+-- one-two
+-- two-one
+-- two-two

Without parallel flag it works as expected and builds identical structure in RP

Launch
.
+-- block-one
        .
        +-- one-one
        +-- one-two
+-- block-two
        .
        +-- two-one
        +-- two-two

  1. Calls of methods of PublicReportingAPI doesn't produce any output in RP report (log entries, test attributes changing)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions