1
votes

I'm using Protractor and jasmine-allure-reporter And trying to run multiple specs that are defined in the config.js file. specs: ['spec1.js','spec2.js']

spec1.js contains 3 tests and spec2.js contains single test.But the jasmine-allure-reporter displays all the four test cases(3+1) together and there is no specification about the spec files (spec file name). How can I display the test cases separately under each spec file-name in one HTML. Please help me on this.

I am generating report using command "allure generate allure-results --clean -o allure-report || true"

allure-results >> Location where xml files are generated and allure-report >> where html report is generated

1

1 Answers

1
votes

Looking at the allure reporter repository, it doesn't look like it's supported. They set the outDir but do not expose a way to consolidateAll like how jasmine-reporter does. See jasmine-reporter GitHub. If you decide to switch to jasmine-reporter, consolidating XML files is pretty simple. See the Protractor cookbook for an example.