Closed adarsh-singh closed 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.
What went wrong: Execution failed for task ':karmaRun'.
Process 'command 'cmd'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.982 secs
E:\MyWorkspace\Expirements\Gradle_Karma>
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.
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
What went wrong: Execution failed for task ':karmaRun'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.982 secs
E:\MyWorkspace\Expirements\Gradle_Karma>