Permalink
Commits on Jan 29, 2015
  1. [dist] Version bump. 0.5.0

    indexzero committed Jan 29, 2015
Commits on Jan 28, 2015
  1. Merge pull request #23 from brandon-fryslie/allow_wait_function_to_ta…

    sam-github committed Jan 28, 2015
    …ke_a_callback
    
    Add ability for wait function to take a callback
Commits on Jan 21, 2015
  1. Merge pull request #24 from brandon-fryslie/allow_expecting_against_b…

    sam-github committed Jan 21, 2015
    …oth_stdout_and_stderr
    
    Specify 'all' as stream type to expect against both stdout and stderr
Commits on Jan 7, 2015
Commits on Jul 3, 2014
  1. Merge pull request #20 from airandfingers/patch-1

    sam-github committed Jul 3, 2014
    README.md typo: require('nspawn') -> require('nexpect')
Commits on Jul 2, 2014
Commits on May 9, 2014
  1. 0.4.2

    bajtos committed May 9, 2014
  2. 0.4.1

    bajtos committed May 9, 2014
  3. Merge pull request #18 from strongloop/fix-send-eof-after-send-line

    bajtos committed May 9, 2014
    Fix handling of consecutive _send* calls
Commits on May 7, 2014
  1. Fix handling of consecutive _send* calls

    bajtos committed May 7, 2014
    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. 0.4.0

    bajtos committed Apr 15, 2014
Commits on Apr 14, 2014
  1. Merge pull request #17 from strongloop/improve-message-on-nonempty-queue

    bajtos committed Apr 14, 2014
    Improve message on nonempty queue + fix child hanging on stdin
  2. Add `spawn.sendEof` to close the stdin pipe

    bajtos committed Apr 14, 2014
    `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. Add details to "no data from child..."

    bajtos committed Apr 14, 2014
    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. Add details to "non-empty queue on spawn exit"

    bajtos committed Apr 14, 2014
    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. Merge pull request #16 from strongloop/better-failure-messages

    bajtos committed Apr 11, 2014
    Improve the error reported by a failed expectation
  2. Improve the error reported by a failed expectation

    bajtos committed Apr 11, 2014
    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. Merge pull request #15 from strongloop/support-regex-matchers

    bajtos committed Apr 11, 2014
    Support RegExp expectations
  4. Support RegExp expectations

    bajtos committed Apr 11, 2014
    Modify _expect() and _wait() to support both sub-string and RegExp
    specifications of what output is expected.
Commits on Jan 8, 2014
Commits on Jan 2, 2014
Commits on Dec 20, 2013
  1. [dist] Version bump. 0.3.0

    indexzero committed Dec 20, 2013
Commits on Nov 25, 2013
  1. Merge pull request #1 from strongloop/spawn-env

    sam-github committed Nov 25, 2013
    Bring nexpect up-to-date with node v0.8 and later
  2. Update vows and prompt dependencies

    sam-github committed Nov 20, 2013
    Versions depended on are years old, and both have improved a lot,
    vows in particular supports xunit output.
  3. Fix wait tests by having test fixture exit

    sam-github committed Nov 20, 2013
    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.
  4. nexpect now requires node >= 0.8

    sam-github committed Nov 20, 2013
    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
Commits on Nov 19, 2013
  1. Fix incompatibilities with node v0.10

    sam-github committed Nov 19, 2013
    - 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. api,test: configure env for the spawned process

    bajtos committed Aug 27, 2013
    + fixed unit-tests broken by the recent change of the callback API
  2. Fixed `run` callback to preserve API compatibility

    bajtos committed Aug 27, 2013
    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. Merge pull request #2 from binchen911/master

    indexzero committed May 23, 2013
    callback status code