Skip to content

Commit

Permalink
chore: move bench test to spec test (#27970)
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanAlrimawi authored Feb 5, 2025
1 parent 1eb4142 commit 8a07d38
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 17 deletions.
15 changes: 0 additions & 15 deletions tests/integration/bench_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use serde_json::json;
use test_util as util;
use url::Url;
use util::assert_contains;
use util::assert_not_contains;
use util::TestContext;
Expand All @@ -22,20 +21,6 @@ fn recursive_permissions_pledge() {
);
}

#[test]
fn file_protocol() {
let file_url =
Url::from_file_path(util::testdata_path().join("bench/file_protocol.ts"))
.unwrap()
.to_string();
let context = TestContext::default();
context
.new_command()
.args(format!("bench bench/file_protocol.ts {file_url}"))
.run()
.assert_matches_file("bench/file_protocol.out");
}

#[test]
fn conditionally_loads_type_graph() {
let context = TestContext::default();
Expand Down
8 changes: 8 additions & 0 deletions tests/specs/bench/file_protocol/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"args": [
"bench",
"file_protocol.ts"
],
"output": "file_protocol.out",
"exitCode": 0
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Check file://[WILDCARD]/bench/file_protocol.ts
Check file://[WILDCARD]/file_protocol.ts
CPU | [WILDCARD]
Runtime | Deno [WILDCARD] ([WILDCARD])

[WILDCARD]/bench/file_protocol.ts
[WILDCARD]/file_protocol.ts

benchmark time/iter (avg) iter/s (min … max) p75 p99 p995
----------- ----------------------------- --------------------- --------------------------
Expand Down
File renamed without changes.

0 comments on commit 8a07d38

Please sign in to comment.