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

Error using jUnit options #52

Open
eddieajau opened this issue Aug 19, 2014 · 5 comments
Open

Error using jUnit options #52

eddieajau opened this issue Aug 19, 2014 · 5 comments

Comments

@eddieajau
Copy link

Grunt file configuration:

        jasmine_node: {
            options: {
                jUnit: {
                    report: true,
                    savePath : './build/reports/jasmine',
                    useDotNotation: true,
                    consolidate: true
                }
            },
            all: ['spec/']
        },
...
    grunt.registerTask('integrationtest', ['jasmine_node']);

Installed

└── grunt-jasmine-node@0.2.1 
jasmine-node@1.14.5 node_modules/jasmine-node
├── mkdirp@0.3.5
├── walkdir@0.0.7
├── coffee-script@1.7.1
├── requirejs@2.1.14
├── jasmine-reporters@1.0.0
├── jasmine-growl-reporter@0.0.3 (growl@1.7.0)
└── gaze@0.3.4 (minimatch@0.2.14, fileset@0.1.5)

Getting this error running the integration tests:

Failed to execute "jasmine.executeSpecsInFolder": TypeError: undefined is not a function
    at Object.jasmine.executeSpecsInFolder (/Users/foo/git/ETLaaS/node_modules/grunt-jasmine-node/node_modules/jasmine-node/lib/jasmine-node/index.js:100:28)
    at Object.<anonymous> (/Users/foo/git/ETLaaS/node_modules/grunt-jasmine-node/tasks/jasmine-node-task.js:96:17)
    at Object.<anonymous> (/Users/foo/git/ETLaaS/node_modules/grunt/lib/grunt/task.js:264:15)
    at Object.thisTask.fn (/Users/foo/git/ETLaaS/node_modules/grunt/lib/grunt/task.js:82:16)
    at Object.<anonymous> (/Users/foo/git/ETLaaS/node_modules/grunt/lib/util/task.js:301:30)
    at Task.runTaskFn (/Users/foo/git/ETLaaS/node_modules/grunt/lib/util/task.js:251:24)
    at Task.<anonymous> (/Users/foo/git/ETLaaS/node_modules/grunt/lib/util/task.js:300:12)
    at /Users/foo/git/ETLaaS/node_modules/grunt/lib/util/task.js:227:11
    at process._tickDomainCallback (node.js:463:13)
    at Function.Module.runMain (module.js:499:11)

Setting report to false allows the tests to run.

Is there a possible configuration problem my end?

@mxriverlynn
Copy link

this is an issue in the reporters used by jasmine-node. there was already a fix for this in jasmine-node directly, but grunt-jasmine-node has not been updated with the fix in the dependency

see mhevery/jasmine-node#330

grunt-jasmine-node needs to be updated to include the corrected version of jasmine-node, i think.

@mxriverlynn
Copy link

it looks like PR #50 will fix this issue, if it ever gets pulled in.

@jhenriquez
Copy link

@derickbailey , could this same issue be the cause of #54 ? After all is the TerminalReporter the only one that uses the includeStackTrace?

@jhenriquez
Copy link

Nope, it doesn't fix it.

@matmar10
Copy link

I tried out PR #50 and it works for me.

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

No branches or pull requests

4 participants