{"id":37027583,"url":"https://github.com/robstoll/tutteli-spek-extensions","last_synced_at":"2026-01-14T03:16:54.261Z","repository":{"id":29855218,"uuid":"122953712","full_name":"robstoll/tutteli-spek-extensions","owner":"robstoll","description":"Extensions for the spek framework such as TempFolder","archived":true,"fork":false,"pushed_at":"2023-09-04T17:22:00.000Z","size":709,"stargazers_count":2,"open_issues_count":11,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T03:53:34.032Z","etag":null,"topics":["kotlin","spek","testing"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robstoll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"robstoll"}},"created_at":"2018-02-26T10:29:46.000Z","updated_at":"2023-09-05T06:11:34.000Z","dependencies_parsed_at":"2022-09-01T06:01:45.741Z","dependency_job_id":null,"html_url":"https://github.com/robstoll/tutteli-spek-extensions","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/robstoll/tutteli-spek-extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robstoll%2Ftutteli-spek-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robstoll%2Ftutteli-spek-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robstoll%2Ftutteli-spek-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robstoll%2Ftutteli-spek-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robstoll","download_url":"https://codeload.github.com/robstoll/tutteli-spek-extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robstoll%2Ftutteli-spek-extensions/sbom","scorecard":{"id":781391,"data":{"date":"2025-08-11","repo":{"name":"github.com/robstoll/tutteli-spek-extensions","commit":"85e5d6d794738d3291595b627a7beeb581c84f01"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-ubuntu.yml:1","Warn: no topLevel permission defined: .github/workflows/build-windows.yml:1","Warn: no topLevel permission defined: .github/workflows/sonarcloud.yml:1","Warn: no topLevel permission defined: .github/workflows/validate-gradle-wrapper.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-ubuntu.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/build-ubuntu.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-ubuntu.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/build-ubuntu.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-windows.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/build-windows.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-windows.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/build-windows.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/sonarcloud.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/sonarcloud.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/sonarcloud.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sonarcloud.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/sonarcloud.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate-gradle-wrapper.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/validate-gradle-wrapper.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate-gradle-wrapper.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/robstoll/tutteli-spek-extensions/validate-gradle-wrapper.yml/main?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T04:59:27.763Z","repository_id":29855218,"created_at":"2025-08-23T04:59:27.763Z","updated_at":"2025-08-23T04:59:27.763Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","spek","testing"],"created_at":"2026-01-14T03:16:53.520Z","updated_at":"2026-01-14T03:16:54.252Z","avatar_url":"https://github.com/robstoll.png","language":"Kotlin","funding_links":["https://github.com/sponsors/robstoll"],"categories":[],"sub_categories":[],"readme":"\u003c!-- for master --\u003e\n\n[![Download](https://img.shields.io/badge/Download-1.2.1-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.tutteli-spek-extensions/tutteli-spek-extensions/1.2.1/jar)\n[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)\n[![Build Status Ubuntu](https://github.com/robstoll/tutteli-spek-extensions/workflows/Ubuntu/badge.svg?event=push)](https://github.com/robstoll/tutteli-spek-extensions/actions?query=workflow%3AUbuntu+branch%3Amaster)\n[![Build Status Windows](https://github.com/robstoll/tutteli-spek-extensions/workflows/Windows/badge.svg?event=push)](https://github.com/robstoll/tutteli-spek-extensions/actions?query=workflow%3AWindows+branch%3Amaster)\n[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=robstoll_tutteli-spek-extensions\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=robstoll_tutteli-spek-extensions)\n[![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=robstoll_tutteli-spek-extensions\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=robstoll_tutteli-spek-extensions)\n\n\u003c!-- for a specific release --\u003e\n\u003c!--\n[![Download](https://img.shields.io/badge/Download-1.2.1-%23007ec6)](https://search.maven.org/artifact/ch.tutteli.tutteli-spek-extensions/tutteli-spek-extensions/1.2.1/jar)\n[![Apache license](https://img.shields.io/badge/license-Apache%202.0-brightgreen.svg)](http://opensource.org/licenses/Apache2.0)\n--\u003e\n\n# Tutteli spek extension\nA set of [Spek](http://spekframework.org/) extensions such as [MemoizedTempFolder](#MemoizedTempFolder).\n\n# Installation\n\ntutteli-spek-extensions is published to maven central.\n\n```\nrepositories { mavenCentral() }\ndependencies {\n    testImplementation(\"ch.tutteli.spek:tutteli-spek-extensions:1.2.1\")\n}\n```\n\n# Features\n\n## MemoizedTempFolder\n\n`memoizedTempFolder` provides -- similar to TemporaryFolder in junit4 -- utility methods to create temp files and folders and takes care of deleting them.\n\nSpecify a `memoizedTempFolder` within a group like scope near to the test you are going to use the tempFolder (default `CachingMode` is per `TEST`, so each test gets its own temporary directory)\n\n```kotlin\nimport memoizedTempFolder\nimport org.spekframework.spek2.Spek\nimport org.spekframework.spek2.style.specification.describe\n\nobject MySpec: Spek({\n    \n    describe(\"...\") {\n        val tempFolder by memoizedTempFolder()\n\n        it (\"...\") {\n            val file = tempFolder.newFile(\"test.txt\")\n        }\n    }\n})\n```\n\nPass a `CachingMode` if required (see [Caching modes @ spekframework.org](https://www.spekframework.org/core-concepts/#caching-modes))\nFor instance: \n```kotlin\nimport ch.tutteli.atrium.api.fluent.en_GB.*\nimport ch.tutteli.atrium.verbs.expect\nimport memoizedTempFolder\nimport org.spekframework.spek2.Spek\nimport org.spekframework.spek2.style.specification.describe\nimport org.spekframework.spek2.lifecycle.CachingMode\n\nobject MySpec: Spek({\n    \n    describe(\"...\") {\n        val tempFolder by memoizedTempFolder(CachingMode.SCOPE)\n        \n        it (\"test1\") {\n            val file = tempFolder.newFile(\"test.txt\")\n            file.delete()\n        }\n        it(\"test2\"){\n            expect(file).exists() // would fail\n        }       \n    }\n})\n```\nAnd you can use the second argument of `memoizedTempFolder` for additional setup:\n\n\n```kotlin\nimport ch.tutteli.atrium.api.fluent.en_GB.*\nimport ch.tutteli.atrium.verbs.expect\nimport memoizedTempFolder\nimport org.spekframework.spek2.Spek\nimport org.spekframework.spek2.style.specification.describe\nimport org.spekframework.spek2.lifecycle.CachingMode\n\nobject MySpec: Spek({\n    \n    describe(\"...\") {\n        val tempFolder by memoizedTempFolder(CachingMode.TEST) {\n            val f = newDirectory(\"folderWithinTempFolder\")\n            newSymbolicLink(\"link\", f)\n        }\n        \n        it (\"test1\") {\n            expect(tempFolder.resolve(\"folderWithinTempFolder\")).exists()\n            expect(tempFolder.resolve(\"link\")).exists()   \n        }    \n    }\n})\n```\n\nThere are a few other utility methods defined on `MemoizedTempFolder`: `newDirectory`, `newSymbolicLink`, \n`resolves` and `withinTmpDir`.\n\nTutteli spek extension works best in combination with [Niok](https://github.com/robstoll/niok)\nwhich enhances `Path` with methods like `createDirectories`, `setAttribute`, `writeLines` and many more (not only useful in tests but also in production code).\nWith Niok in place, more complicated setup can be defined easily:\n```kotlin\nimport memoizedTempFolder\nimport ch.tutteli.niok.*\nimport org.spekframework.spek2.Spek\nimport org.spekframework.spek2.style.specification.describe\nimport org.spekframework.spek2.lifecycle.CachingMode\n\nobject MySpec: Spek({\n    \n    describe(\"...\") {\n        val tempFolder by memoizedTempFolder(CachingMode.TEST) {\n            withinTmpDir {\n                val subDir = resolve(\"dir1/dir2/dir3\").createDirectories()\n                subDir.resolve(\"a.txt\").writeLines(listOf(\"a\", \"b\", \"c\"))\n            }\n        }\n    }\n})\n```\nAnd if you like to assert certain properties of a Path, then we recommend using [Atrium](https://github.com/robstoll/atrium).\n\n# License\ntutteli-spek-extensions is licensed under [Apache 2.0](https://opensource.org/licenses/Apache2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobstoll%2Ftutteli-spek-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobstoll%2Ftutteli-spek-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobstoll%2Ftutteli-spek-extensions/lists"}