Skip to content

Multiple root elements in logfile #71

@categoryshell

Description

@categoryshell

Hello,

When i want to write the results to a logfile (in this case i've tested json and junit output), multiple root elements a written to the file, which causes the file to be json/xml invalid.

In case of the junit output, a lot of information is missing anyway.
jUnit export should include all files, including all failed and succeeded tests. As far as i can see, only failed tests are included.
When using this in Bamboo, the number of performed tests won't match the real number of performed test.
And when a bug is fixed, the test won't change from error to succes but it simply disappears.

Am i doing something wrong?

The task i'm running is:

gulp.task('ci-scssLint', function () {
    var file = fs.createWriteStream('../log/sassLint.json');
    var stream = gulp.src('../../app/design/frontend/**/*.scss')
        .pipe(sassLint({
            options: {
                configFile: 'sass-lint.yml',
                formatter: 'json'
            }
        }))
        .pipe(sassLint.format(file));
    stream.on('finish', function() {
        file.end();
    });
    return stream;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions