【问题标题】:OUnit Test Issues with DuneDune 的 OUnit 测试问题
【发布时间】:2020-02-11 03:05:03
【问题描述】:

我有一个具有这种结构的项目:

- dune
- main.ml
-- src/
---- dune
---- parser.ml
-- test/
---- dune
---- test_parser.ml

src/dune,我有以下内容:

(library (name Parser))

test/dune:

(test (name test_token_type) (libraries oUnit Parser))

当我去运行dune build时,我收到了投诉:

File "test/dune", line 1, characters 46-52:
1 | (test (name test_parser) (libraries oUnit Parser))
                                              ^^^^^^

关于如何解决的任何想法?

【问题讨论】:

  • 我认为您遗漏了错误消息。

标签: ocaml ocaml-dune ounit


【解决方案1】:

解决了这个问题。事实证明,我在顶级路径和test/parser 路径中有一个dune-project 文件。 dune 很可能认为引入了另一个项目,并且没有在父路径或类似路径中查找依赖项。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多