summaryrefslogtreecommitdiff
path: root/cli/tests/integration/bench_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-02-23 12:59:23 +0100
committerGitHub <noreply@github.com>2023-02-23 12:59:23 +0100
commitd5f053dabfadb2a62a4cc6b89a6b7bf64ce3c460 (patch)
tree81019a9eec5ec3ea2133a782cc785cb4a957f609 /cli/tests/integration/bench_tests.rs
parentb15f9e60a040e2e450e7ca9971a5fc07dbf8b94c (diff)
feat(bench): change --json output format (#17888)
Closes https://github.com/denoland/deno/issues/17775
Diffstat (limited to 'cli/tests/integration/bench_tests.rs')
-rw-r--r--cli/tests/integration/bench_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/bench_tests.rs b/cli/tests/integration/bench_tests.rs
index 7953bef34..15a86ee9d 100644
--- a/cli/tests/integration/bench_tests.rs
+++ b/cli/tests/integration/bench_tests.rs
@@ -178,6 +178,12 @@ itest!(bench_with_malformed_config {
output: "bench/collect_with_malformed_config.out",
});
+itest!(json_output {
+ args: "bench --json bench/pass.ts",
+ exit_code: 0,
+ output: "bench/pass.json.out",
+});
+
#[test]
fn recursive_permissions_pledge() {
let output = util::deno_cmd()