Skip to content
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

Question/recommendation on testing framework to use #1209

Closed
brandonlamb opened this issue Feb 2, 2019 · 2 comments
Closed

Question/recommendation on testing framework to use #1209

brandonlamb opened this issue Feb 2, 2019 · 2 comments
Labels
closed: question The issue is a question

Comments

@brandonlamb
Copy link
Contributor

brandonlamb commented Feb 2, 2019

Hopefully this is appropriate to ask in an issue.

We are developing in Kotlin, and currently using cli and api micronaut apps. Now we are finally looking into unit/functional testing (late to the game, I know).

Given the usage of Kotlin, I'm trying to determine the best test framework to put our money on investing into.

  • TestNG
  • JUnit
  • Spek
  • Spock

We see micronaut-testing, looks like cool stuff, with support for Spock and JUnit, so this is a consideration.

Spek is obviously geared towards Kotlin, and we have done some prototyping with it.

TestNG we use for our integration testing, and we like the DataProvider support and custom listeners where we write out to PostgreSQL with the test results with Grafana dashboard integration.

We use pgsql, db2, cassandra (scylla), kafka, elasticsearch (not all in the same API usually, but some mix across our 70+ microservices). The ability to use embedded xyz is amazing, I had no idea that existed.

Swinging back to this question, what would you recommend as a "good bet" for our co-located unit/functional testing, given the technology choices listed? Are there other considerations I am not thinking of?

Myself and a peer are looking to establish some templates/patterns for the rest of our team so we can start including this as requirements for "definition of done".

Thank you for any input! I debated asking this in the gitter channel but didnt want it to get lost in the noise of chat.

Edit 1: just to clarify, this is not a "which test framework is better" question, but rather which one would best for our particular setup/tech/language? If that ends up being "I recommend Spock or Spek", that at least eliminates two from our list to prototype.

@jameskleeh
Copy link
Contributor

This is for reporting issues with the framework. For questions like this please use gitter, or in this case the Kotlin slack. Micronaut really has not much to do with what testing framework you use.

PS: I recently started using https://github.com/kotlintest/kotlintest and I like it better than spek

@jameskleeh jameskleeh added the closed: question The issue is a question label Feb 4, 2019
@graemerocher
Copy link
Contributor

I think there is an argument to be had about what should be the default for tests with Kotlin applications. Currently the default is Spek but @MicronautTest supports only JUnit 5 and Spock. The experience with JUnit 5 and Kotlin is good IMO and is what I would use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question The issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants