OCaml Forge

Detail: [#1454] oUnit in a non-command-line environment

Feature Requests: Browse | Download .csv | Monitor

[#1454] oUnit in a non-command-line environment

Date:
2015-02-18 13:55
Priority:
3
State:
Open
Submitted by:
Gerd Stolpmann (gstolpmann)
Assigned to:
Nobody (None)
Component:
None
Operating System:
None
Product:
None
 
Summary:
oUnit in a non-command-line environment

Detailed description
Hi,

we'd like to use oUnit in an environment where you cannot start commands on your own (in our case this is an iOS app). This means that there is no way to set Sys.argv, and the ocaml code will be invoked from an Objective-C wrapper. There is also no stdout/stderr (but I guess I can redirect this to a temp file).

So, we'd like to pass at least argv to run_test_tt_main. I don't know what else needs to be done to reconfigure oUnit for this target. IOS is a quite constrained environment, and in particular access to files is restricted.

I have some time to help, but I'd like to know whether such an extension would be welcome.

Gerd

Followup

Message
Date: 2015-02-18 14:44
Sender: Sylvain Le Gall

I think that is totally doable and your contribution will be more than welcome. Have a look at the source code and tell me precisely the change you want to make (Sys.argv can be a start, I suppose you have to create a specific oUnitLogger as well).

Attached Files:

Changes:

No Changes Have Been Made to This Item