Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Test all profiles #2618

Merged
merged 5 commits into from
Nov 13, 2024
Merged

test: Test all profiles #2618

merged 5 commits into from
Nov 13, 2024

Conversation

Julow
Copy link
Collaborator

@Julow Julow commented Nov 13, 2024

Run formatting on every test files for every profiles. Rules are generated for each profiles and output files (.ref and .err) are now in

test/passing/refs.<profile name>/

The main reason for this change is to increase the coverage for the default profile, which was barely tested.

This also avoids tests without a ref file, which are frustrating to work with.

The '.ref' extension for output files is not dropped to avoid confusing output files for input files.

Run formatting on every test files for every profiles. Rules are
generated for each profiles and output files (.ref and .err) are now in

    test/passing/refs.<profile name>/

The main reason for this change is to increase the coverage for the
default profile, which was barely tested.

This also avoids tests without a ref file, which are frustrating to work
with.

The '.ref' extension for output files is not dropped to avoid confusing
output files for input files.
@Julow Julow added the no changelog set this to bypass the CI check for changelog entries label Nov 13, 2024
The coverage for the janestreet profile is much better than before and
all of these cases are already covered in source.ml.
This is no longer needed
Rewrite the command to use the `refs.*/.ocamlformat` belonging to each
profiles and include the same dune.inc in each output dirs.

'verbose1.ml' test is removed because it doesn't work well with the
`--name` option.

The size of the dune file is also slightly reduced because the (package)
stanza could be removed.
@Julow Julow merged commit 8af2ec4 into ocaml-ppx:main Nov 13, 2024
9 of 10 checks passed
Julow added a commit to Julow/ocamlformat that referenced this pull request Nov 29, 2024
Bug introduced in ocaml-ppx#2618.
The tests don't pass when run with `dune build -p` option, as it's done
in Opam.
Julow added a commit that referenced this pull request Nov 29, 2024
Bug introduced in #2618.
The tests don't pass when run with `dune build -p` option, as it's done
in Opam.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog set this to bypass the CI check for changelog entries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant