Giter VIP home page Giter VIP logo

Comments (6)

patriknw avatar patriknw commented on July 26, 2024

However, this might be less relevant nowadays since I think we use other examples in the documentation? Anyway, if we keep the example it should have tests.

from kalix-jvm-sdk.

johanandren avatar johanandren commented on July 26, 2024

Doing this as it will also let me work through the test kit which I haven't used before.

from kalix-jvm-sdk.

johanandren avatar johanandren commented on July 26, 2024

After digging a bit here, the eventing sample has a integration test, but no unit tests. I think I misinterpreted this issue as there being something more akin to in-jvm testkit but the SDK testkit is for running integration tests against proxy in docker with the help of test-containers, not unit tests?

from kalix-jvm-sdk.

kikiya avatar kikiya commented on July 26, 2024

The unit tests should be using the js testkit.

I think the docs have been updated to show this. I just reviewed a PR for a tutorial using the e-commerce sample to show unit testing with js testkit.

The main issue I saw with the current format is it requires manually downloading the testkit and I think it should be part of the SDK instead. @johanandren @octonato

from kalix-jvm-sdk.

johanandren avatar johanandren commented on July 26, 2024

This is the Java SDK though, and the testkit is part of the SDK set of artifacts and included in samples as a regular dependency.

Just that it doesn't have any specific support for unit tests (as in quick in-process tests) but integration tests where it spins up the proxy in dev mode in a docker container and runs tests against that. So maybe it is just a terminology confusion here (unit tests vs integration tests run in tests written with junit).

from kalix-jvm-sdk.

johanandren avatar johanandren commented on July 26, 2024

Depends on #118 now then

from kalix-jvm-sdk.

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.