Comments (7)
Here's one: spekframework/spek#256 (comment). I don't think it's an IDE-specific patch, the JavaArtifact#additionalSourcesDir
is probably used somehow in AGP3.
from android-junit5.
I'm hesitant towards the idea to extend the scope of this plugin to IDE-specific patches, since I'm assuming that a similar workaround would have to be made for IDEA and Studio 2.x versions as well (judging from the linked source).
Could you link some of the issues caused by copying Kotlin output to intermediates
? Thanks!
from android-junit5.
Thanks! I'll investigate a little.
from android-junit5.
Another point of concern in applying a patch like this inside the JUnit 5 plugin is the requirement to depend on a local installation of Android Studio. This would be a problem when it comes to our Travis CI builds, since we wouldn't have access to a $localAndroidStudio
there.
from android-junit5.
Do you really need the full installation? Is there a way to just pull in AGP3 dependencies?
from android-junit5.
I was just going off the way you reach into the IDE's plugin dependencies to obtain the compileOnly
code necessary to provide Spek support. Pretty cool actually! There are some internal APIs inside AGP3 which could theoretically allow somebody to register additional artifacts (by means of ExtraModelInfo
), however I'd rather not touch those internals.
Meanwhile, it seems that the Kotlin integration into the IDE has been improved quite a bit in the most recent releases, so that they are detected properly even from the /tmp
folders. Also, when working on Kotlin translation earlier, I stumbled upon an interesting fact about the legacy integration between Java and Kotlin. In fact, on projects using AGP2, the Kotlin plugin automatically performs the Copy task itself! This might also have been a cause for accidental duplication of classes. The next version of android-junit5
won't perform any copying on its own anymore, and instead collect its inputs from a new TestRootDirectoryProvider
interface, which is contributed to from the Kotlin compilation tasks directly.
from android-junit5.
Released in 1.0.20
.
from android-junit5.
Related Issues (20)
- Instrumented Testsuites run on JUnit4 Runner HOT 1
- Might be better to migrate CI to Github Actions
- Add support for Gradle Plugins DSL HOT 2
- org.junit.runners.model.InvalidTestClassError starting with Android Studio Dolphin | 2021.3.1 HOT 8
- Build broken when using kotlin 1.7.21 HOT 1
- Clarification with regards to JaCoCo HOT 2
- AGP 8.0.0-alpha10 HOT 6
- Various 'Unable to resolve' log messages for Android tests HOT 4
- Parallel concurrent execution of instrumentation tests HOT 6
- NoClassDefFoundError: org/jetbrains/kotlin/gradle/plugin/KotlinPluginKt with Kotlin 1.8.20 HOT 5
- `@Tag` at the class level results in test number mismatch HOT 6
- NoSuchMethodError: 'org.gradle.api.provider.Property org.gradle.api.reporting.ConfigurableReport.getOutputLocation()' on Gradle 7.5.1 HOT 3
- Is it possible to run junit5 tests with robolectric? HOT 5
- Encountering problems when trying to integrate the plugin HOT 1
- Log not working with ParameterizedTest HOT 1
- Support per-test log display for JUnit 5 instrumentation tests HOT 4
- Readme should include apply plugin for legacy syntax HOT 1
- "Expected N+1 tests, received N" caused by fun with @TestTemplate HOT 4
- Invalid test names for repeated and parametrized tests HOT 8
- Usage of ComposeExtension flags a false-positive warning in newer IDEs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-junit5.