google / google/truth

Document how to write a Truth extension under Kotlin

Open
#661 8 comments 0 reactions 0 assignees View on GitHub
P3 type=documentation type=enhancement
Dominant language
Java
Stars
2.8k
Forks
275
Avg merge
7m
Merged PRs (30d)
4

Description

It's pretty simple (and pretty similar to Java), but it's always nice for users to have an example.

\[edit: I now have [a draft example](https://github.com/google/truth/issues/661#issuecomment-1452472936) below.\]

We could also consider suggesting that every `Subject.Factory` come with an extension-method "overload" of `StandardSubjectBuilder.that` (#660).

\[edit: See also https://github.com/google/truth/issues/660#issuecomment-803529493, which suggests that we may be able to make extensions easier to write under Kotlin than under Java.\]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.