Skip to content

Commit

Permalink
Include the filename of a bruno request in the results. (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian94 authored Jan 29, 2024
1 parent 5553875 commit 0e24efb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/bruno-cli/src/runner/run-single-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ const runSingleRequest = async function (
} else {
console.log(chalk.red(stripExtension(filename)) + chalk.dim(` (${err.message})`));
return {
test: {
filename: filename,
},
request: {
method: request.method,
url: request.url,
Expand Down Expand Up @@ -322,6 +325,9 @@ const runSingleRequest = async function (
}

return {
test: {
filename: filename,
},
request: {
method: request.method,
url: request.url,
Expand All @@ -343,6 +349,9 @@ const runSingleRequest = async function (
} catch (err) {
console.log(chalk.red(stripExtension(filename)) + chalk.dim(` (${err.message})`));
return {
test: {
filename: filename,
},
request: {
method: null,
url: null,
Expand Down

0 comments on commit 0e24efb

Please sign in to comment.