Commit b944438
feat: run playground tests in parallel (#1717)
- Adds a new button in the test playground to run tests in parallel
- Introduces `run_many_tests` to run playground tests in parallel using
futures!
https://github.com/user-attachments/assets/8652e643-9857-4468-8317-6b3ac20d162b
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds functionality to run playground tests in parallel with a new
button and supporting logic for concurrent execution.
>
> - **Behavior**:
> - Adds a button in `TestMenu.tsx` to run tests in parallel.
> - Implements `run_many_tests` in `mod.rs` to execute tests
concurrently using futures.
> - **Functions**:
> - Introduces `useParallelRunTests` in `test-runner.ts` to manage
parallel test execution.
> - Updates `useRunTests` to support the new parallel execution logic.
> - **Misc**:
> - Adds `futures` dependency to `Cargo.toml` for async operations.
> - Minor UI adjustments in `TestMenu.tsx` for the new button.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 0b4851f. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: Aaron Villalpando <aaron@boundaryml.com>1 parent a80a0f1 commit b944438
11 files changed
Lines changed: 511 additions & 98 deletions
File tree
- engine
- baml-schema-wasm/src/runtime_wasm
- typescript/playground-common/src
- baml_wasm_web
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments