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

groovy unit tests don't run with ./gradlew test ? #32

Closed
jordansamuels opened this issue Jun 18, 2014 · 3 comments
Closed

groovy unit tests don't run with ./gradlew test ? #32

jordansamuels opened this issue Jun 18, 2014 · 3 comments

Comments

@jordansamuels
Copy link

Repro:

$ git clone -q https://github.com/Netflix/zuul.git zuul-tests && cd zuul-tests
$ ./gradlew -q test
$ grep -oE 'ZuulServletFilter|GroovyCompatibility' zuul-core/build/reports/tests/index.html | uniq
ZuulServletFilter
$ grep -c 'PostDecoration' zuul-netflix-webapp/build/reports/tests/index.html
0

E.g. GroovyCompatibility.groovy and PostDecoration.groovy has unit tests that aren't being run.

Related questions: what should people do to verify a PR is good before submitting (I was assuming ./gradlew test is the main action)? Is there a continuous build for zuul, and if so what does it do?

@manuelcorrea
Copy link

@jordansamuels Did you get gradle to run the test with './gradlew test'?

@jordansamuels
Copy link
Author

Actually I'm not active in zuul at the moment, so I haven't looked at this
in several months, sorry!

On Fri, Feb 6, 2015 at 2:58 PM, Manuel Correa notifications@github.com
wrote:

@jordansamuels https://github.com/jordansamuels Did you get gradle to
run the test with 'gradle test'?


Reply to this email directly or view it on GitHub
#32 (comment).

@manuelcorrea
Copy link

got it working adding this lines in the build.gradle

test {
    testLogging {
        events "passed", "skipped", "failed"
    }
}

sourceSets {
    test {
        groovy {
            srcDir 'src/main/groovy/filters'
        }
    }
}

@artgon artgon closed this as completed Jan 5, 2018
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

3 participants