We will be deploying GitLab 9.2.1 shortly, there is no downtime expected.



A simple TAP producer for Praat - http://testanything.org

Name Last Update
procedures Loading commit data...
t Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CHANGELOG Loading commit data...
COPYING Loading commit data...
cpran.yaml Loading commit data...
readme.md Loading commit data...

testsimple build badge


A simple test framework for Praat, using the Test Anything Protocol. Its functionality is based heavily on that of Test::Simple


include /path/to/test_simple.proc

# Abort testing in critical case
if cricital_failure
  @bail_out("Testing is pointless!")

# Plan your test suite
# or @no_plan() if you don't know how many tests you'll run

# Run your tests
# @ok() interprets the first argument as boolean
# and the second argument as the name of the test
@ok(1, "1 is true")
@ok(if selected$("Sound") == "tone" then 1 else 0 fi,
  ... "selected sound is tone")
# or more succinctly
@ok(selected$("Sound") == "tone",
  ... "selected sound is tone")

# You can also use formulas
@ok_formula("selected$(""Sound"") == ""tone""",
  ... "selected sound is tone")

# Skip n tests that are known to fail
@skip(2, "skip next two tests)
@ok(0, "have selected sounds")  ; will "succeed" anyway
@ok(1, "defibrollate braggles") ; also skipped

@ok(0, "failing test")          ; no longer skipped!

# You can skip all tests until a certain point
@skip(undefined, "skip some more tests")
for i to randomInteger(5,10)
  @ok(0, "")                    ; all these will be skipped
@ok(0, "failing test")          ; this one will fail!

# You can mark tests as work in progress
# Failing a TODO test is ok, but passing it is a nice bonus!
@todo(1, "how do I brime a brock?")
@ok(brimed$, "try briming")

# Or mark a whole block as TODO
@todo(undefined, "more tests as TODO")
for i to randomInteger(5,10)
  @ok(0, "")                    ; all these will be marked as TODO

# Mark the end of your suite