Seems like agent works not as expected in parallel mode.
- 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
- Calls of methods of
PublicReportingAPI doesn't produce any output in RP report (log entries, test attributes changing)
Seems like agent works not as expected in parallel mode.
Test files:
With
parallelflag reporter produces launch with 4 tests and ignores suites defined in describe blockWithout
parallelflag it works as expected and builds identical structure in RPPublicReportingAPIdoesn't produce any output in RP report (log entries, test attributes changing)