Giter Club home page Giter Club logo

Comments (5)

czyzby avatar czyzby commented on June 13, 2024

Why did you try so far? Putting your tests in src/test/kotlin should do the trick.

from gdx-setup.

keturn avatar keturn commented on June 13, 2024

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?

gdx-project-scopes

from gdx-setup.

czyzby avatar czyzby commented on June 13, 2024

You have dots in your folder name, replace this with actual folders.

from gdx-setup.

keturn avatar keturn commented on June 13, 2024

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.

czyzby avatar czyzby commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.