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

Test-only dependencies; test source translation and execution #489

Merged

Conversation

advayDev1
Copy link
Contributor

  • j2objcTestLinkage links to a j2objc project only for your test source-set
  • j2objcTestTranslation translates and executes a unit test source jar

Fixes #465

@advayDev1 advayDev1 added this to the 0.5 Release milestone Oct 5, 2015
@advayDev1
Copy link
Contributor Author

@brunobowden ptal.

other than documenting dependencies, this is the last thing i will have time for 0.5.0

}
}

protected void failOnBuildClosureForTests(boolean isTest, Dependency dep) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stick with the parameter convention: Dependency first, isTest as second parameter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@brunobowden
Copy link
Contributor

I feel like this should have something in the way of tests.

With j2objcTestTranslation, how is it enabled / disabled? I'm thinking of the case where a library may or may not have a test-sources.jar. I'm wondering if it should download and apply the test translation if and only if the test-sources.jar exists. Then if it doesn't exist, that part of the build is just dropped.

- j2objcTestLinkage links to a j2objc project only for your test source-set
- j2objcTestTranslation translates and executes a unit test source jar

Fixes j2objc-contrib#465
@advayDev1
Copy link
Contributor Author

@brunobowden ptal.

  • Added tests for testCompile and j2objcTestLinkage to multiProject1.
    multiProject1 system test also checks that duplicate transitive dependencies function correctly.
  • Also updated the libraries for 0.9.8.2.1; fixes Update to 0.9.8.2.1 libraries #492

@brunobowden
Copy link
Contributor

LGTM

Is there a way to make the code more clear for the tests? I'm wondering if the joiner should be based on the class, so you'd get a result like aEXTbEXTc, or aBASEbBASEc, which makes the context more clear.

multiProject1 system test also checks that duplicate transitive dependencies function correctly.
@advayDev1
Copy link
Contributor Author

Ok - done

advayDev1 added a commit that referenced this pull request Oct 6, 2015
Test-only dependencies; test source translation and execution
@advayDev1 advayDev1 merged commit 24fa15a into j2objc-contrib:master Oct 6, 2015
@advayDev1 advayDev1 deleted the testTranslationConfiguration branch October 6, 2015 23:09
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

Successfully merging this pull request may close these issues.

2 participants