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

Tests are not running in parallel, after adding attributes(tags) of Report portal api #71

Open
shaifaliyadav opened this issue Nov 18, 2021 · 0 comments

Comments

@shaifaliyadav
Copy link

shaifaliyadav commented Nov 18, 2021

m running tests in parallel using -parallel attribute. And am using report portal https://github.com/reportportal/agent-js-mocha to publish the results.
Tests were running in parallel until i used this addattributes (tag ) feature of report portal. Example:

const PublicReportingAPI = require('@reportportal/agent-js-mocha/lib/publicReportingAPI');
...
describe('suite',()=>{
before(function (){
PublicReportingAPI.addAttributes([{ key: 'suiteAttr1Key', value: 'suiteAttr1Value' }, { value: 'suiteAttr2' }]);
});
it('test', () => {
PublicReportingAPI.addAttributes([{ key: 'testAttr1Key', value: 'testAttr1Value' }]);
PublicReportingAPI.addAttributes([{ value: 'testAttr2' }]);
});
});

now if i use this PublicReportingAPI.addAttributes([{ value: 'testAttr2' }]);, then tests don't tun in parallel mode and if i remove this, tests run in parallel mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant