Test output doesn't display in console until finished

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Reproduce the issue with the shown gulp task and the --steps flag, then start at the gulp-codeception entry point and trace how Codeception output is handled. Done means test steps appear in the console as they complete rather than only after all tests finish; no test file is named in the issue.

Written by the indexing model from the issue text.

Description

When I run codeception manually from the command line, it shows each step of each test as it completes. However, when I use gulp-codeception it doesn't show any of the output until all tests are completely finished and then shows everything all at once. I know it's not a big deal, but it would be nice to see the progress as it's running. Here's my task:

gulp.task('acceptance-test', function() {
    gulp.src('')
        .pipe(shell('clear'))
        .pipe(codecept('', { 'flags': '--steps', notify: true } ))
        .on('error', notify.onError({
            title: "Failure",
            message: "Your acceptance tests failed!",
            icon: __dirname + "/build/fail.png"
        }))
        .pipe(notify({
            title: "Success",
            message: "All acceptance tests have passed!",
            icon: __dirname + "/build/success.png"
        }));
});
Dominant language
JavaScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mikeerickson/gulp-codeception

All issues in mikeerickson/gulp-codeception

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.