Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testacular init dies with exception: #340

Closed
catphive opened this issue Feb 8, 2013 · 1 comment
Closed

testacular init dies with exception: #340

catphive opened this issue Feb 8, 2013 · 1 comment

Comments

@catphive
Copy link

catphive commented Feb 8, 2013

I installed testacular 0.5.9 on ubuntu 12.10 like so:
sudo npm install -g testacular@canary

The testacular init script dies with an exception. Here's the complete transcript:

testacular init

Which testing framework do you want to use ?
Press tab to list possible options. Enter to move to the next question.
> jasmine

Do you want to use Require.js ?
This will add Require.js adapter into files.
Press tab to list possible options. Enter to move to the next question.
> yes

Do you want to capture a browser automatically ?
Press tab to list possible options. Enter empty string to move to the next question.
> Chrome

/usr/lib/node_modules/testacular/node_modules/log4js/lib/logger.js:56
    return this.level.isLessThanOrEqualTo(otherLevel);
                  ^
TypeError: Cannot call method 'isLessThanOrEqualTo' of undefined
    at Logger.isLevelEnabled (/usr/lib/node_modules/testacular/node_modules/log4js/lib/logger.js:56:23)
    at Logger.forEach.Logger.(anonymous function) [as warn] (/usr/lib/node_modules/testacular/node_modules/log4js/lib/logger.js:67:22)
    at Object.validateBrowser [as validate] (/usr/lib/node_modules/testacular/lib/init.js:59:9)
    at StateMachine.onLine (/usr/lib/node_modules/testacular/lib/init.js:158:25)
    at Interface.EventEmitter.emit (events.js:96:17)
    at Interface._onLine (readline.js:200:10)
    at Interface._line (readline.js:518:8)
    at Interface._ttyWrite (readline.js:736:14)
    at ReadStream.onkeypress (readline.js:97:10)
    at ReadStream.EventEmitter.emit (events.js:126:20)
@dignifiedquire
Copy link
Member

Thanks for reporting this, I can confirm, this is a bug introduced by me when rewriting the logger.
A fix is comming 🔨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants