2026-10-06 22:11:42 +02:00
|
|
|
"""Run synthetic source-capture guards in the same Node runtime as the exporter."""
|
|
|
|
|
import subprocess
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
2026-10-31 15:37:08 +01:00
|
|
|
import pytest
|
2026-10-06 22:11:42 +02:00
|
|
|
|
2026-10-31 15:37:08 +01:00
|
|
|
|
|
|
|
|
@pytest.mark.parametrize('suite', ['bubble-corpus-utils', 'bubble-resource-utils'])
|
|
|
|
|
def test_bubble_capture_guards(suite):
|
2026-10-06 22:11:42 +02:00
|
|
|
root = Path(__file__).resolve().parents[1]
|
|
|
|
|
result = subprocess.run(
|
2026-10-31 15:37:08 +01:00
|
|
|
['node', '--test', f'scripts/tests/{suite}.test.mjs'],
|
2026-10-06 22:11:42 +02:00
|
|
|
cwd=root, capture_output=True, text=True, check=False,
|
|
|
|
|
)
|
|
|
|
|
assert result.returncode == 0, result.stdout + result.stderr
|