craigburke / karma-gradle

Gradle Plugin for Running tests with Karma
Other
21 stars 11 forks source link

:karmaRun failing while building the gradle project #33

Closed adarsh-singh closed 7 years ago

adarsh-singh commented 7 years ago

E:\MyWorkspace\Expirements\Gradle_Karma>gradlew build :compileJava UP-TO-DATE :processResources NO-SOURCE :classes UP-TO-DATE :jar UP-TO-DATE :assemble UP-TO-DATE :karmaInit UP-TO-DATE :nodeSetup UP-TO-DATE :karmaDependencies UP-TO-DATE :karmaGenerateConfig UP-TO-DATE :karmaRun PhantomJS 2.1.1 (Windows 7 0.0.0): Executed 0 of 0 ERROR (0.002 secs / 0 secs) :karmaRun FAILED56% EXECUTING

:karmaRun FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 10.982 secs

E:\MyWorkspace\Expirements\Gradle_Karma>

adarsh-singh commented 7 years ago

I got the solution to my problem, i just mentioned my test and source file path in the build.gradle karma { files = [ 'src/main/source.js' , 'src/test/sourceSpec.js' ] } and the error was gone.