Comments (5)
Why did you try so far? Putting your tests in src/test/kotlin
should do the trick.
from gdx-setup.
For example, I have core/src/test/kotlin/net.keturn.advent2018.gdx/Day06KtTest.kt intended to test core/src/main/kotlin/net/keturn/advent2018/gdx/Day06.kt, and IntelliJ doesn't show any errors while editing the test file, but when I click the Run Test button I get
Error:(6, 8) Kotlin: Unresolved reference: net
running gradlew test
or gradlew core:test
produces no such compiler failure, but there's also no message about that "expect false to be true" test I put in there either, so I'm not convinced that's running them either.
The problem may be that when I look at the project structure dialog, it thinks there is something named advent2018-gdx/core
as well as just core
and they're both pointing to the same sources and it doesn't like it. Is that something that was configured when I ran gradlew idea
?
from gdx-setup.
You have dots in your folder name, replace this with actual folders.
from gdx-setup.
Okay, I tried moving the test file to nested directories instead of one with dots, and that didn't seem sufficient to fix things.
Removing those two core
and desktop
entries from the project structure made it so that when I do Run Test from IntelliJ, they do now find the code in the package they're supposed to test. ✔️
Running gradlew test
does build a core/build/reports/tests/test/index.html
, but it reports 0 tests, 0 failures, 0 successes.
from gdx-setup.
Removing those two
It's weird they were included in the first place. How did you import the project?
from gdx-setup.
Related Issues (20)
- Update to LibGDX 1.9.6
- Generated GWT projects fail in browser due to outdated JS HOT 5
- Output stream not shown in Intellij run tab HOT 3
- Can't create project with ios-MOE HOT 26
- Android incorrect assets folder location. HOT 12
- Android Gradle files have error that prevents building HOT 3
- Update Gradle wrapper to 4.0.2
- Set HdpiMode to HdpiMode.Pixels to remove pixelated look on OS X HOT 2
- There is no OpenGL context current in the current thread. HOT 8
- Cannot start generated Autumn MVC desktop application when the project was created alongside Android app HOT 2
- Could not get unknown property 'assetsDir' for project ':lwjgl3' HOT 1
- Root project path of the Gradle project not found for Module: HOT 3
- Java Runtime issue HOT 3
- Lack of Accessibility HOT 1
- generated GdxDefinition.gwt.xml files have wrong DOCTYPE HOT 1
- jglfw project doesn't compile HOT 1
- Wrong url for KtxGraphics HOT 1
- GWT: Plugin with id 'jetty' not found. HOT 5
- Update to LibGDX 1.9.9 HOT 6
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 gdx-setup.