{"id":16558755,"url":"https://github.com/wakingrufus/tornadofx-test","last_synced_at":"2025-08-09T19:33:59.526Z","repository":{"id":84622317,"uuid":"141602008","full_name":"wakingrufus/tornadofx-test","owner":"wakingrufus","description":"Kotlin extensions for TornadoFX and TestFX","archived":false,"fork":false,"pushed_at":"2018-07-19T21:12:43.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-15T11:07:30.046Z","etag":null,"topics":["kotlin","testing","tornadofx"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wakingrufus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-19T15:58:10.000Z","updated_at":"2022-10-09T14:02:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f5792a3-d482-4f81-8597-fb0ae6c75322","html_url":"https://github.com/wakingrufus/tornadofx-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakingrufus%2Ftornadofx-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakingrufus%2Ftornadofx-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakingrufus%2Ftornadofx-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wakingrufus%2Ftornadofx-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wakingrufus","download_url":"https://codeload.github.com/wakingrufus/tornadofx-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945526,"owners_count":20046869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kotlin","testing","tornadofx"],"created_at":"2024-10-11T20:23:38.377Z","updated_at":"2025-03-05T01:12:14.877Z","avatar_url":"https://github.com/wakingrufus.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tornadofx-test\nKotlin extensions for TornadoFX and TestFX\n\n## Testing a View or Fragment\n\nYou can test a `View` or `Fragment` in isolation.\nSuppose you have the following Fragment:\n\n```kotlin\nclass TestFragment : Fragment() {\n    companion object : KLogging()\n\n    val string: String by param()\n\n    override val root = vbox {\n        label(string){\n            id = \"label\"\n        }\n    }\n}\n```\n\n### JUnit\nUse the `tornadofx-test-junit` library to test your Views and Fragments with JUnit4\n\n```kotlin\nclass TestFragmentTest : TornadoFxTest() {\n\n    @Test\n    fun test() {\n        showViewWithParams\u003cTestFragment\u003e(mapOf(\"string\" to \"string\"))\n\n        verifyThat(\"#label\", hasText(\"string\"))\n    }\n}\n```\n\nUse the `tornadofx-test-junit5` library to test your Views and Fragments with JUnit5\n\n```kotlin\n@ExtendWith(ApplicationExtension::class)\nclass TestFragmentTest : TornadoFxTest() {\n\n    @Test\n    fun test() {\n        showViewWithParams\u003cTestFragment\u003e(mapOf(\"string\" to \"string\"))\n\n        verifyThat(\"#label\", hasText(\"string\"))\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwakingrufus%2Ftornadofx-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwakingrufus%2Ftornadofx-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwakingrufus%2Ftornadofx-test/lists"}