-
Notifications
You must be signed in to change notification settings - Fork 409
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
Mdx stanza doesn't work with multiple packages using opam #3267
Comments
That doesn't seem easy to fix. TBH, it's quite difficult to get the tests to work well when building packages by packages in isolation. If that's for the CI, the current trend is to run the testsuite with dune directly in the CI. |
Is there a workaround for it? Right now I'm doing this so that it can compile with opam: ; dune
(rule
(alias runtest)
(package my_project)
(deps
(package my_project)
(:x README.md))
(action
(progn
(run ocaml-mdx test %{x})
(diff? %{x} %{x}.corrected)))) The |
Regarding the Regarding the original issue, unfortunately there is no workaround at the moment. Why do you use the |
I'm new to the opam workflow. I'm trying to get lambda_streams published but I tried doing it manually by forking the repo and submitting a PR, but the travis build was failing. I decided to test the repo locally by doing |
I see. Are you using dune to generate the opam file? |
Yeah |
Ok, so one thing you can do is create a I'm thinking that we should add an option in the |
Hi, The new version of the
As for the other question - how to deal with tests that are not specific to a single opam package - a common pattern is to create a dedicated "mypackage-test" package and attach these tests to it. You can find an example in https://github.com/mirage/irmin with the irmin-test package. Please reopen or file a new issue if that's not enough to support your use case. Thanks! |
Expected Behavior
Trying
opam install . -t -d
should install as expected with themdx
stanza. The stanza works fine when developing locally withruntest
.Actual Behavior
It errors out with this when trying to build the first package (
my_package
):Reproduction
Directory structure:
./dune-project
:./dune
:./my_project/src/dune
./my_project_lwt/src/dune
./my_project_async/src/dune
Specifications
I'm using Arch Linux:
The text was updated successfully, but these errors were encountered: