Last active
September 7, 2022 16:44
-
-
Save oliverspryn/f7ed89dd65f9a96606456df2b7cb3b5e to your computer and use it in GitHub Desktop.
A collection of file templates and Live templates for Android Studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("when $FUNCTION_NAME$") { | |
uut.$FUNCTION_NAME$() | |
$END$ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("$DESCRIPTION$") { | |
$END$ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it("$DESCRIPTION$") { | |
$END$ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set( $testName = $NAME ) | |
#set( $uutLength = $testName.length() - 4 ) | |
#set( $uut = $testName.substring(0, $uutLength) ) | |
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME} #end | |
import io.kotest.core.spec.style.DescribeSpec | |
class $testName : DescribeSpec({ | |
describe("The $uut") { | |
val uut: $uut = $uut() | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For $TYPE$ | |
// Edit variables: enter TYPE, capitalize(NAME) [for the expression], check Skip if Defined | |
val $NAME$: $TYPE$ = mock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("when $PROPERTY_NAME$") { | |
val result: $OUTCOME_TYPE$ = uut.$PROPERTY_NAME$ | |
$END$ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment