Truth
blog-gradle-all-the-way-down
Our great sponsors
Truth | blog-gradle-all-the-way-down | |
---|---|---|
4 | 2 | |
2,693 | 13 | |
0.4% | - | |
8.9 | 0.0 | |
7 days ago | about 2 years ago | |
Java | Kotlin | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Truth
-
Any resources for Unit Tests?
Truth or AssertJ for easier assertions in tests with better exceptions
-
Getting back into Java after 12-15 years away?
Truth is a nice unit testing assertion library
-
Gradle all the way down: Testing your Gradle plugin with Gradle TestKit
Configured the default test suite (named "test", i.e., the "unit tests") to use the JUnit5 (aka JUnit Jupiter) test framework, and to add Truth as a testImplementation dependency.
-
Truthish: A Google Truth inspired library written for Kotlin MPP
Hey all - I created a project for myself two years ago to experiment with MPP, based on Google Truth but rewritten in 100% Kotlin, which I called Truthish.
blog-gradle-all-the-way-down
-
Defensive development: Gradle plugin development for busy engineers
View on GitHub
-
Gradle all the way down: Testing your Gradle plugin with Gradle TestKit
For brevity, I will not discuss how the unit tests work in the sample repo. Instead, I encourage you to take a look if you're curious. Bottom line: exactly like you'd expect, with maybe the small exception that it uses JUnit5 rather than 4. I've included it primarily to demonstrate the possibility and utility of maintaining multiple test suites that each serve different purposes.
What are some alternatives?
AssertJ - AssertJ is a library providing easy to use rich typed assertions
dear-github-2.0 - 📨 An open letter to GitHub from the maintainers of open source projects
Hamcrest - Java (and original) version of Hamcrest
dependency-analysis-gradle-plugin - Gradle plugin for JVM projects written in Java, Kotlin, Groovy, or Scala; and Android projects written in Java or Kotlin. Provides advice for managing dependencies and other applied plugins
JUnit - A programmer-oriented testing framework for Java.
Mockito - Most popular Mocking framework for unit tests written in Java
S3Mock - A simple mock implementation of the AWS S3 API startable as Docker image, TestContainer, JUnit 4 rule, JUnit Jupiter extension or TestNG listener
Awaitility - Awaitility is a small Java DSL for synchronizing asynchronous operations
TestNG - TestNG testing framework
Testcontainers - Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
REST Assured - Java DSL for easy testing of REST services
System Rules - A collection of JUnit rules for testing code which uses java.lang.System.