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

Way to start background run without watch task #155

Open
WickyNilliams opened this issue Jul 10, 2015 · 1 comment
Open

Way to start background run without watch task #155

WickyNilliams opened this issue Jul 10, 2015 · 1 comment

Comments

@WickyNilliams
Copy link

I'd like a way to start (and keep open) the karma server from grunt, without introducing the watch task. I use browserify for bundling etc so have no need for watch.

My current default task looks like:

grunt.registerTask("default", ["browserify:dev"]);

I'd like to also start the karma server/runner as part of this default task:

grunt.registerTask("default", ["karma:unit", "browserify:dev"]);

Karma starts but doesn't run any tests. If I start from the CLI directly, it works fine:

grunt karma:unit

Is there some combination of config that will get this working? If not, should there be?

@murphyj
Copy link

murphyj commented Nov 13, 2015

Just wondering can you use the karma:continuous goal to do this with singleRun: true ?
e.g.

continuous: {
                configFile: 'karma.conf.js',
                singleRun: true,
                browsers: ['PhantomJS']
            }

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

2 participants