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

How to test Coq libraries? #11006

Open
liyishuai opened this issue Oct 9, 2024 · 1 comment
Open

How to test Coq libraries? #11006

liyishuai opened this issue Oct 9, 2024 · 1 comment
Labels
coq docs Documentation improvements

Comments

@liyishuai
Copy link
Contributor

Desired Behavior

A simpler way to test Coq libraries than: https://github.com/liyishuai/coq-json/blob/master/test/dune

Example

I have a Coq library that defines several computations. I then write tests like:

Goal myFunc foo = bar.
Proof. reflexivity. Qed.

These examples may spread across multiple files in the test/ directory. I'd expect test/dune to be as simple as:

(coq.test
 (deps
  (package coq-my-package)))
@ejgallego ejgallego added the coq label Oct 9, 2024
@Alizter
Copy link
Collaborator

Alizter commented Nov 13, 2024

For an example in the wild, see Coq-HoTT:

Note that you can change what gets added to the default alias. Have a look at https://dune.readthedocs.io/en/stable/reference/aliases/default.html

@Alizter Alizter added the docs Documentation improvements label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coq docs Documentation improvements
Projects
None yet
Development

No branches or pull requests

3 participants