Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jan 29, 2015
  1. Charlie Robbins

    [dist] Version bump. 0.5.0

    indexzero authored
Commits on Jan 28, 2015
  1. Sam Roberts

    Merge pull request #23 from brandon-fryslie/allow_wait_function_to_ta…

    sam-github authored
    …ke_a_callback
    
    Add ability for wait function to take a callback
  2. Brandon Fryslie
Commits on Jan 21, 2015
  1. Sam Roberts

    Merge pull request #24 from brandon-fryslie/allow_expecting_against_b…

    sam-github authored
    …oth_stdout_and_stderr
    
    Specify 'all' as stream type to expect against both stdout and stderr
Commits on Jan 7, 2015
  1. Brandon Fryslie
Commits on Jul 3, 2014
  1. Sam Roberts

    Merge pull request #20 from airandfingers/patch-1

    sam-github authored
    README.md typo: require('nspawn') -> require('nexpect')
Commits on Jul 2, 2014
  1. Aaron Yoshitake
Commits on May 9, 2014
  1. Miroslav Bajtoš

    0.4.2

    bajtos authored
  2. Miroslav Bajtoš

    0.4.1

    bajtos authored
  3. Miroslav Bajtoš

    Merge pull request #18 from strongloop/fix-send-eof-after-send-line

    bajtos authored
    Fix handling of consecutive _send* calls
Commits on May 7, 2014
  1. Miroslav Bajtoš

    Fix handling of consecutive _send* calls

    bajtos authored
    Previously, two consecutive calls of _send* functions will execute
    the first one only. This commit fixes this problem.
    
    Example reproducing the bug:
    
      spawn(...)
        .expect('prompt')
        .sendLine('response')
        .sendEof()
        .run(...);
Commits on Apr 15, 2014
  1. Miroslav Bajtoš

    0.4.0

    bajtos authored
Commits on Apr 14, 2014
  1. Miroslav Bajtoš

    Merge pull request #17 from strongloop/improve-message-on-nonempty-queue

    bajtos authored
    Improve message on nonempty queue + fix child hanging on stdin
  2. Miroslav Bajtoš

    Add `spawn.sendEof` to close the stdin pipe

    bajtos authored
    `spawn.sendEof` allows users to close child's process stdin stream
    and let it know there are no more data coming.
    
    This change enables testing of apps that are using inquirer,
    as `inquirer.prompt()` calls `stdin.resume()` at some point,
    which causes the app to block on input when the input stream is a pipe.
  3. Miroslav Bajtoš

    Add details to "no data from child..."

    bajtos authored
    Improve the error reported when there are not enough lines in the
    child process output.
     - use assert.AssertionError instead of plain Error
     - fill actual and expected properties
     - include the description of items remaining in the queue
  4. Miroslav Bajtoš

    Add details to "non-empty queue on spawn exit"

    bajtos authored
    Improve the error reported when the child process exits before the
    whole queue is processed:
     - use assert.AssertionError instead of plain Error
     - fill actual and expected properties
     - include the description of items remaining in the queue
Commits on Apr 11, 2014
  1. Miroslav Bajtoš

    Merge pull request #16 from strongloop/better-failure-messages

    bajtos authored
    Improve the error reported by a failed expectation
  2. Miroslav Bajtoš

    Improve the error reported by a failed expectation

    bajtos authored
    Modify the error reported when a line does not match the expectation
    provided by `expect` or `wait`:
     - use assert.AssertionError instead of plain Error
     - fill actual and expected properties
     - include the expectation in the error message
  3. Miroslav Bajtoš

    Merge pull request #15 from strongloop/support-regex-matchers

    bajtos authored
    Support RegExp expectations
  4. Miroslav Bajtoš

    Support RegExp expectations

    bajtos authored
    Modify _expect() and _wait() to support both sub-string and RegExp
    specifications of what output is expected.
Commits on Jan 8, 2014
  1. Sam Roberts
Commits on Jan 2, 2014
  1. Cheng Lou
  2. Cheng Lou
Commits on Dec 20, 2013
  1. Charlie Robbins

    [dist] Version bump. 0.3.0

    indexzero authored
Commits on Nov 25, 2013
  1. Sam Roberts

    Merge pull request #1 from strongloop/spawn-env

    sam-github authored
    Bring nexpect up-to-date with node v0.8 and later
  2. Sam Roberts

    Update vows and prompt dependencies

    sam-github authored
    Versions depended on are years old, and both have improved a lot,
    vows in particular supports xunit output.
  3. Sam Roberts
  4. Sam Roberts
  5. Sam Roberts

    Fix wait tests by having test fixture exit

    sam-github authored
    I don't know why prompt-and-respond doesn't exit when run as a child
    process, but does when run at the command line, and I don't care right
    now, the tests now pass.
  6. Sam Roberts

    nexpect now requires node >= 0.8

    sam-github authored
    It used to claim to support node >= 0.2. I don't know if it supported
    0.2, but it definitely didn't support node 0.10. Currently, tests pass
    with 0.8 and 0.10, the last two stable releases.
Commits on Nov 20, 2013
  1. Sam Roberts
Commits on Nov 19, 2013
  1. Sam Roberts

    Fix incompatibilities with node v0.10

    sam-github authored
    - Wait for 'close' event, not 'exit'
    
    exit occurs when child has exited, but that can be before the parent
    process has consumed stdout, as happens when testing `echo hello`, which
    exits before the parent has process the queue of expectations
    
    - Listen for 'error' event
    
    Code seems to expect to get notified of command not found through the
    shell convention of exiting with 127 when it can't find the command to
    exit. This isn't how node works anymore, it uses an error event.
    
    - Tests assumed the err object was second argument to run callback, but
      it is first.
    
    - Tests involving sendfile never complete, vows just hangs, waiting.
    
    Have not tracked down, but I commented the tests out for the short term.
Commits on Aug 27, 2013
  1. Miroslav Bajtoš

    api,test: configure env for the spawned process

    bajtos authored
    + fixed unit-tests broken by the recent change of the callback API
  2. Miroslav Bajtoš

    Fixed `run` callback to preserve API compatibility

    bajtos authored
    Callback parameters should be `(err, stdout, exitcode)`. The change introduced
    by commit 587f600 was breaking API and also all unit-tests.
    
    Updated README.md to show the callback parameters.
Commits on May 23, 2013
  1. Charlie Robbins

    Merge pull request #2 from binchen911/master

    indexzero authored
    callback status code
Something went wrong with that request. Please try again.