-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Duplicate file error while using jUnit in Android apps #929
Comments
I thought Android used their own fork of JUnit... Have you tried asking on the Android forums? Many Android projects use JUnit, so I would be surprised if there wasn't a simple workaround. |
Most Android developers prefer to write pure junit tests so we go with the standard version of junit. Based on my research, here are workarounds that people generally go with -
|
Android internally comes with junit3 support. |
I don't have any objections to renaming the license file. @dsaff do you have any thoughts? |
The name of license file is usual in Maven build process. |
I am using jUnit for unit tests not runtime :). The thing is that in order to run unit tests on android devices (or emulators), it has to package an "apk" file with all the needed libraries (application libraries + junit/hamcrest/mockito etc). Agreeing that license file is a usual part of the build process, in case of jUnit as #627 states, the licence packed under junit-4.11 is the wrong file. Thanks |
As an example we have several build files in company. This means one in development, next in production, because we don't want to deliver in customer more than necessary. In such case manually modified test framework in build file is okay because it's just only for the internal use. |
I agree that we should rename to LICENSE-junit.txt |
…e file errors while using in Android apps.
Fixed issue #929 - Renamed license file to prevent duplicate file errors in Android when creating an apk
Fixed by @mustafa01ali |
…e file errors while using in Android apps.
…e file errors while using in Android apps.
It is really sad JUnit uses non-standard LICENSE name. I think LICENSE should be included in |
While using jUnit in Android applications, if any other referenced library has a file named "LICENSE.txt", the APK generation fails with the following error -
A simple renaming of LICENSE.txt to LICENSE-junit.txt would make the lives of a ton of Android developers easier :)
The text was updated successfully, but these errors were encountered: