FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_runner: handle undefined test locations by cjihrig · Pull Request #52036 · nodejs/node · GitHub

/ node Public

test_runner: handle undefined test locations - #52036

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
cjihrig:repl-tests
Mar 12, 2024
Merged

test_runner: handle undefined test locations#52036
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
cjihrig:repl-tests

Conversation

cjihrig commented Mar 10, 2024

Copy link
Copy Markdown
Contributor

This commit updates the built in reporters to check for the documented case of a test's location being undefined.

As a drive by fix, the C++ code for computing the test location now returns undefined if the script location is empty. This lets tests run inside of eval().

This commit updates the built in reporters to check for the
documented case of a test's location being undefined.

As a drive by fix, the C++ code for computing the test location
now returns undefined if the script location is empty. This lets
tests run inside of eval().
cjihrig requested review from MoLow and atlowChemi March 10, 2024 18:05

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. util Issues and PRs related to the built-in util module. labels Mar 10, 2024
MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 11, 2024

Copy link
Copy Markdown
Collaborator

MoLow commented Mar 11, 2024

Copy link
Copy Markdown
Member

This commit updates the built in reporters to check for the documented case of a test's location being undefined.

another use case is test() inside the REPL, can test that as well, but if it uses eval internally it might just be redundant

Copy link
Copy Markdown
Collaborator

MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 11, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 12, 2024
nodejs-github-bot merged commit 3c5764a into nodejs:main Mar 12, 2024

Copy link
Copy Markdown
Collaborator

Landed in 3c5764a

cjihrig deleted the repl-tests branch March 13, 2024 13:39
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
This commit updates the built in reporters to check for the
documented case of a test's location being undefined.

As a drive by fix, the C++ code for computing the test location
now returns undefined if the script location is empty. This lets
tests run inside of eval().

PR-URL: #52036
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
marco-ippolito pushed a commit that referenced this pull request May 3, 2024
This commit updates the built in reporters to check for the
documented case of a test's location being undefined.

As a drive by fix, the C++ code for computing the test location
now returns undefined if the script location is empty. This lets
tests run inside of eval().

PR-URL: #52036
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL