Skip to content

[v9.x] test: refactor test-repl - #18082

Closed
addaleax wants to merge 1 commit into
nodejs:v9.x-stagingfrom
addaleax:backport-v9.x-17926
Closed

[v9.x] test: refactor test-repl#18082
addaleax wants to merge 1 commit into
nodejs:v9.x-stagingfrom
addaleax:backport-v9.x-17926

Conversation

@addaleax

Copy link
Copy Markdown
Member
  • Switch over to async tracking through promises/async fns
  • Remove an unused temp dir refresh
  • Inline the multiline/npm text prompts into expectations
  • Unify handling prompts/stripping prompts out
  • Make sure no unexpected data is received by requireing
    all lines to be matched, rather than chunks received from
    the REPL. This made the test too loose in terms of
    matched lines and too strict in terms of stream chunking
    requirements.
  • Some general cleanup

PR-URL: #17926

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

- Switch over to async tracking through promises/async fns
- Remove an unused temp dir refresh
- Inline the multiline/npm text prompts into expectations
- Unify handling prompts/stripping prompts out
- Make sure no unexpected data is received by requireing
all *lines* to be matched, rather than chunks received from
the REPL. This made the test too loose in terms of
matched lines and too strict in terms of stream chunking
requirements.
- Some general cleanup
PR-URL: nodejs#17926
@nodejs-github-botnodejs-github-bot added test Issues and PRs related to the tests. v9.x labels Jan 10, 2018

@evanlucasevanlucas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evanlucas

Copy link
Copy Markdown
Contributor

Landed in 167e9c6. Thanks!

evanlucas pushed a commit that referenced this pull request Jan 15, 2018
- Switch over to async tracking through promises/async fns
- Remove an unused temp dir refresh
- Inline the multiline/npm text prompts into expectations
- Unify handling prompts/stripping prompts out
- Make sure no unexpected data is received by requireing
all *lines* to be matched, rather than chunks received from
the REPL. This made the test too loose in terms of
matched lines and too strict in terms of stream chunking
requirements.
- Some general cleanup
Backport-PR-URL: #18082
PR-URL: #17926
Reviewed-By: Evan Lucas <evanlucas@me.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@addaleax@evanlucas@nodejs-github-bot