Closed ghale closed 10 years ago
I agree. Also, it would be useful to have a few tests that use jenkins-test-harness to test a complete feature.
You also might want to look into https://github.com/nebula-plugins/nebula-test for your Gradle Plugin oriented tests.
@zeeke - agreed, some integration tests would be well worthwhile
@sgoings - thanks for the pointer to nebula-test, looks sweet
How about https://github.com/cucumber/cucumber-jvm ? Great support for Groovy and Java. Excellent for BDD and now excellent support in IntelliJ.
@ghale I tried to use jenkins-test-harness without success. It seems to works well only when developing a jenkins plugin and building with maven.
So, we can think about refactor what already is in place like mocking JenkinsRESTServiceImpl as it is not a bad solutaion at all.
@zeeke Thanks for looking into the jenkins-test-harness thing. Too bad it doesn't fit.
I've converted a couple of test classes over to Spock/Nebula since I was mucking around with them and had the opportunity. I'm going to look at converting the rest over the next few days as I have time.
All tests have been refactored to use Spock/Nebula-test.
There's been a lot of evolution since the tests were first written and later tests have just fallen in line with the original style. They're nasty and should be refactored to use a framework like Spock (for all the good reasons that test frameworks exist).