ocaml / ocaml/dune

Support for ppx_inline_test flags

Open
#8,993 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

preprocessing test
Dominant language
OCaml
Stars
1.9k
Forks
500
Avg merge
15h 21m
Merged PRs (30d)
277

Description

Tests written using ppx_inline_test can be disabled or enabled depending on some tags.

We can disable irrelevant tests using inline test flags:

 (inline_tests (modes js) (flags -drop-tag no-js -drop-tag 64-bits-only))

But this does not work well when several modes are enabled.

Maybe dune could select automatically the appropriate flags depending on the mode and the host architecture.

Alternatively, it could be convenient to be able to set the inline test flags depending on the mode. Maybe the mode could be available as a variable?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files or tests. Start by tracing how Dune handles inline_tests modes and flags, then determine how host architecture and mode-dependent values could be represented; done would mean flags can be selected appropriately across multiple modes or configured by mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.