ceylon - TestRunner.run() doesn't run testst? -


i have created 'hello world' type test suite, can't seem have run tests. when executed, says:

reached run function

process finished exit code 0

i can tell 2 functions containing tests never executed, contain print statements never printed.

this source code of tests/run.ceylon file:

import ceylon.test {     testrunner, createtestrunner }   mytests1 () {     // assert true!     assert(40 + 2 == 42);     print("mytests1");     return null; }  void mytests2 () {     // assert false!     assert(2 + 2 == 54);     print("mytests2"); }   "run module `tests`." shared void run() {      print("reached run function");      testrunner mytestrunner = createtestrunner(         [`function mytests1`, `function mytests2`]);      mytestrunner.run(); } 

the test function has annotated test annotation, see https://modules.ceylon-lang.org/repo/1/ceylon/test/1.3.3.1/module-doc/api/index.html#start


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -