Hi all
How do you guys go about verifying that your changes are ok before submitting a pull request?
Here's the issue:
After following the instructions in the README, infinitest turns the bar red and reports the following error in the eclipse 'Problems' view:
- NoClassDefFoundError (com/google/common/collect/ImmutableList)
With a bit of digging around through the code, I've been able to reproduce the issue with the master branch when running TestNG tests, so I now know that this problem is not the result of my changes. My changes are just surfacing the TestNG issues for JUnit tests as well now.
Here's how to reproduce the issue:
If anyone can suggest a fix, or an alternative way for me to manually test my changes before submitting a pull request, I'd be grateful.
I'm following the process in the project's README:
- run 'mvn clean install eclipse:clean eclipse:eclipse' in the infinitest project root directory
- start eclipse, import existing project, select root of infinitest project
- open infinitest-eclipse/plugin.xml
- select 'Launch an Eclipse Application'
Then
public class FooTest {
@org.testng.annotations.Test
public void test() {
org.testng.Assert.assertEquals(true, true);
}
}
After saving the file you should now see the above error in the 'Problems' view.
Possible Cause
I suspect the issue is related to the fact that TestNGConfigurator depends on FileBasedInfinitestConfigurationSource, which in turn uses the guava libs. However, the guava jar file doesn't appear on the infinitest runner classpath when I follow the steps above.
Not sure if this is a recent bug, or if there's another way I should be testing infinitest manually.
Cheers for any help,
-- Ryan