janestreet / janestreet/core_bench

Allow for finalizers as well as initializers

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
forwarded-to-js-devs
Dominant language
OCaml
Stars
57
Forks
15
PR merge metrics
No merged PRs in 30d

Description

It would be extremely useful for individual tests to support finalizers, alongside the already-supported initializers. At the moment, one has to either (a) include the finalizer of the previous test in the initializer of the next, and thread the state between them globally, or (b) use GC finalizers.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing initializer support and how individual tests are represented. Define where a per-test finalizer runs relative to the next test, without requiring global state or GC finalizers. Add coverage showing that finalizers are supported alongside initializers and run reliably for each test.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
testing, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.