Skip to content

linebreaks in specs or testcase

Ramon Klein edited this page Aug 16, 2019 · 2 revisions

Some people want newlines in specs or testcase description to be formatted as linebreaks. This can be done by adding custom css to the html report in the configuration:

   jasmine.getEnv().addReporter(new HtmlReporter({
            baseDirectory: 'reports-tmp',
            customCssInline:`
th.spec, th.testCase, .mediumColumn:not([ng-class]) {
    white-space: pre-wrap;
}).getJasmine2Reporter());