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

Some packages have test-dependencies and a test phase in opam files, but no tests #440

Open
sternenseemann opened this issue Jan 16, 2021 · 4 comments

Comments

@sternenseemann
Copy link
Contributor

Some sub packages indicate that they have tests and even a test phase, but don't have any tests if dune runtest -p PACKAGENAME is executed:

  • git-cohttp
  • git-cohttp-mirage
  • git-cohttp-unix
  • carton-git
@dinosaure
Copy link
Member

Yes, the problem came from the release of 3.0.0 to avoid a cyclic dependency between packages and dune's artifacts. For instance, git-nss was removed because tests need git but, for the point-of-view of OPAM packages (which is not the dune point-of-view), git depended on git-nss.

For the development purpose on the current dev repository, a simple dune runtest or dune build executes/compiles all tests and the OCaml-CI (but it's not the case for Travis and AppVeyor which rely on the OPAM view). In other words, in our development process, we don't miss any tests 👍.

But more specially about this package, of course, the dune runtest -p name given by the OPAM file is useless for some of these packages. For my point of view, I prefer an homogeneous pattern for all of my OPAM files even if such line become useless. Is it a problem for you?

@sternenseemann
Copy link
Contributor Author

I've been working on updating git in nixpkgs and found it a bit confusing because from the opam files I got the impression that those packages have individual tests and was confused when the log showed non being run, but it's not really a problem, just possibly confusing.

Reducing the number of packages having tests is actually better for nixpkgs because we have had to disable a few tests from the extended mirage universe already, since tests and packages are coupled together, so stuff like irmin's tests depending on ppx_irmin and vice versa means we have to disable them both.

@dinosaure
Copy link
Member

I see, so I will let this issue open until we remove dune runtest from these packages if it's urgent.

@sternenseemann
Copy link
Contributor Author

Not urgent at all, but this issue may also clarify things for anyone else wondering :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants