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

grunt-node-qunit #81

Closed
monolithed opened this issue Nov 24, 2013 · 5 comments
Closed

grunt-node-qunit #81

monolithed opened this issue Nov 24, 2013 · 5 comments

Comments

@monolithed
Copy link

Instead of:

exec: {
    qunit: {
        command: 'node node_modules/qunit/bin/cli.js ' +
            '--log "{ summary: true, errors: true }" ' +
            '--code ./file.js ' +
            '--tests ./tests/file.js'
    }
}

grunt.loadNpmTasks('grunt-exec');
grunt.registerTask('qunit', 'exec:qunit');
grunt.registerTask('test', ['exec:qunit']);

I'd like to write like:

qunit: {
    setup: {
        log: {
            {
                summary: true,
                errors:  true
            }
        }
    },

    run: {
        code:  './file.js',
        tests: './tests/file.js'
    }
}

grunt.loadNpmTasks('grunt-node-qunit');
grunt.registerTask('test', ['qunit']);
@kof
Copy link
Contributor

kof commented Nov 24, 2013

I am not using grunt yet, but you could use the api for this instead of cli I think?

@monolithed
Copy link
Author

Of course, but using Grunt is more convenient 😊

@kof
Copy link
Contributor

kof commented Nov 24, 2013

Oh, I thought you are writing a grunt plugin, you might want to use one for this?

https://github.com/axemclion/grunt-node-qunit

@monolithed
Copy link
Author

Hm, thanks, I did not know about the one!

@kof
Copy link
Contributor

kof commented Nov 24, 2013

ok let me know if there are still problems.

@kof kof closed this as completed Nov 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants