20260147 迭代优化全量测试和覆盖率测试,时间从325秒降低到90+秒,覆盖率维持在90%

This commit is contained in:
2026-04-17 17:18:05 +08:00
parent 224ae10052
commit f485786470
18 changed files with 225 additions and 11 deletions

View File

@@ -670,6 +670,10 @@ mod tests {
use super::*;
use tempfile::tempdir;
fn skip_heavy_blackbox_test() -> bool {
std::env::var_os("RPKI_SKIP_HEAVY_BLACKBOX_TESTS").is_some()
}
#[test]
fn parse_args_requires_required_flags() {
let argv = vec![
@@ -730,6 +734,9 @@ mod tests {
#[test]
fn run_base_bundle_record_smoke_root_only_apnic() {
if skip_heavy_blackbox_test() {
return;
}
let dir = tempdir().expect("tempdir");
let out_dir = dir.path().join("bundle");
let out = run(Args {