OmnisTAP is a Test Anything Protocol producer for Omnis Studio.
Full documentation is available in the wiki.
Supported:
Not yet supported:
Do ioTAP.$ok(1=1,"1 equals 1")
Do ioTAP.$is_char(low("FOO"),"foo","low() works")
Do ioTAP.$isnotclear($libs.$findname("omnistap_example"),"Our library is open")
1..3
# 2017-09-02 12:19 PM (Unit) Library:omnistap_example Test:_oOmnisTAPExamples/$u_sampleAssertions
ok 1 1 equals 1
ok 2 low() works
ok 3 Our library is open
# 17 ms
Sat Sep 2 13:47:51 2017 Notice: Starting OmnisTAP run on omnistap_example to /Users/aclay/Desktop/tap
Sat Sep 2 13:47:51 2017 Notice: Test timing multiplier is set to 1
Sat Sep 2 13:47:51 2017 Notice: Max timing for unit tests: 5000
Sat Sep 2 13:47:51 2017 Notice: Max timing for integration tests: 90000
Sat Sep 2 13:47:51 2017 Notice: ogTAPManager.$run: ilTests linecount is 1
Sat Sep 2 13:47:51 2017 Notice: Starting up...
Running _oOmnisTAPExamples/$u_sampleAssertions... [ pass ]
Sat Sep 2 13:47:52 2017 Notice: running tests shutdown
Sat Sep 2 13:47:52 2017 Notice: OmnisTAP run on omnistap_example complete in 1 second to /Users/aclay/Desktop/tap
Sat Sep 2 13:47:52 2017 Notice: Temp folder for this session is /tmp/suran/omnistap25002500/
Clone this repository to a working directory:
git clone https://github.com/suransys/omnistap.git
omnistap/lib/[your Omnis version]/omnistap.lbs
in Omnis Studioomnistap.kgTAPTask
_oHelloOmnisTAP
_oHelloOmnisTAP
to subclass omnistap.ogTAPSuper
Add the method $u_sayHello
to _oHelloOmnisTAP
with this code
Do ioTAP.$pass("Hello OmnisTAP!")
Do $cinst.$processCLI() Returns lbCLIRun
If lbCLIRun=kTrue
Quit method
End If
omnistap.lbs
, omniscli.lbs
, and your library are opened at startupRun this command from a command prompt:
[path to bin/omniscli] runtests [path to tap output directory]
Please see the wiki for full documentation.
Please see our guide to contributing.