#2465 Javascript Tests

SlimerDude Thu 17 Sep 2015

Hi, Test.setup() and Test.teardown() don't seem to be called in Javascript:

@Js
class TestMe : Test {
	
    override Void setup() {
        echo("-> setup")
    }

    override Void teardown() {
        echo("-> teardown")
    }

    Void testMe() {
        echo("-> test")		
    }
}

Gives:

C:\>fant -js xxx::TestMe

-- Run: xxx::TestMe.testMe...
-> test
   Pass: xxx::TestMe.testMe  [0]

Time: 22ms

andy Mon 21 Sep 2015

Login or Signup to reply.