Skip to content

Dest with parallel to false pass Array #68

@Herve-M

Description

@Herve-M

Hello,

Using Global options and custom destination with Parallel to false make input to be an Arrray.

casper: {
      options: {
        test: true,
        parallel : false,
        concurrency : 1,
        'log-level' : 'error',
        'fail-fast' : false,
        concise : false,
        engine : 'phantomjs'
      },
      advancedTest: {
        src: ['tests/test_*.js'],
        dest : function(input) {
          grunt.log.write(Array.isArray(input)); //Will log true
          str = input.replace('tests/', '');
          return 'tests/results/'+str.replace(/\.js$/,'phs.xml');
        }
      },
    },

Herve-M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions