Skip to content

Testing utop  #45

Open
Open
@bartoszmodelski

Description

Release 0.3.0 broke utop (link). It'd be nice if we could add testing to prevent such issues slipping through in the future.

I have not found anything specifically designed for testing utop, but we could have a simple test that orchestrates utop / dune utop . through dropping to command-line.

$ cat test.ml 
let test_1 () = assert false;;

let run () = 
  match test_1 () with
  | () -> Stdlib.exit 0
  | exception _ -> Stdlib.exit 1
;;

run ()
$ utop -init test.ml 
.. 
$ echo $?
1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions