Unit testing in Komodo IDE 11 for perl?

In version 10, I had set up a unit test. Now in version 11, it doesn’t seem to work, and I’m not sure what I’m doing wrong (if anything).

I’m running:
Komodo IDE, version 11.0.0, build 90668, platform linux-x86_64.
Built on Tue Sep 19 16:11:12 2017.

I tried creating a new test. My test, in the “Edit Unittest Config” dialog shows:

Name: tryit
Path: /home/unittest/tryit
Framework: prove
Command (grayed out): prove -vlrfm --normalize --nocolor
Parser: tap
Save To (grayed out): global

When I click Run, a gray line that looks like a scroll bar appears in the middle of the screen for a few seconds, but nothing else happens. My code does not run–I can tell because it’s supposed to output a line of text to a file, and that doesn’t happen.

When I run prove -vlrfm --normalize --nocolor from the command line, my tests run fine.

Any ideas?

Here’s what was in my error log:

[2017-10-18 17:19:01,173] [ERROR] unittest/panel: Unit test failed
– EXCEPTION START –
TypeError: ko.interpolate is undefined

  • stack
    this.run@chrome://unittest/content/sdk/handlers/custom.js:39:9
    this.run@chrome://unittest/content/sdk/unittest.js:206:16
    Panel/doRun@chrome://unittest/content/sdk/panel.js:237:24
    Panel/onRun@chrome://unittest/content/sdk/panel.js:211:13
    – EXCEPTION END –

Thank you @Chazinski! We have a fix ready, it should land when we release version 11.0.1 next week or so.

1 Like

That’s great, thanks!

A similar problem appears to be happening for PHP. Will this fix also resolve it?

-- EXCEPTION START --
TypeError: ko.interpolate is undefined
+ stack
    this.run@chrome://unittest/content/sdk/handlers/custom.js:39:9
    this.run@chrome://unittest/content/sdk/unittest.js:206:16
    Panel/doRun@chrome://unittest/content/sdk/panel.js:237:24
    Panel/onRun@chrome://unittest/content/sdk/panel.js:211:13
-- EXCEPTION END --

Yes, it affects all unit tests.