Skip to content

build failed when no Test file was created #39

@manuel-mauky

Description

@manuel-mauky

When there is no test file in the project I get the following result:

:examples/fregefx:compileJava UP-TO-DATE
:examples/fregefx:compileFrege
calling: javac -nowarn -source 1.7 -target 1.7 -cp <PATHS>
:examples/fregefx:processResources UP-TO-DATE
:examples/fregefx:classes
:examples/fregefx:jar
:examples/fregefx:assemble
:examples/fregefx:compileTestJava UP-TO-DATE
:examples/fregefx:compileTestFrege UP-TO-DATE
:examples/fregefx:processTestResources UP-TO-DATE
:examples/fregefx:testClasses UP-TO-DATE
:examples/fregefx:fregeQuickCheck
<PATHS_TO_JARS>
E -:1: Could not import module
    <PATH_TO_PROJECT>/examples/fregefx/build/classes/test
    (java.lang.ClassNotFoundException:
    <PATH_TO_PROJECT>/examples/fregefx/build/classes/test)
Properties passed: 0, failed: 0
:examples/fregefx:fregeQuickCheck FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':examples/fregefx:fregeQuickCheck'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' 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

(I've removed some parts of the log with path names inside my home directory. <PATH_TO_PROJECT> was an absolute path)

However, If I add a file src/test/frege/mypackage/Test1.fr with this content:

module mypackage.Test1 where

import Test.QuickCheck

With this empty QuickCheck test the build runs without errors.

My expectation would be that the quickcheck task is skipped without errors when no tests are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions