{"id":13339557,"url":"https://github.com/ashawley/jgit-scalacheck","last_synced_at":"2026-05-17T00:02:37.390Z","repository":{"id":150092971,"uuid":"82643842","full_name":"ashawley/jgit-scalacheck","owner":"ashawley","description":"JGit Scalacheck tests","archived":false,"fork":false,"pushed_at":"2017-02-21T06:46:53.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T02:10:01.598Z","etag":null,"topics":["git","jgit","scala","scalacheck","unit-testing"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashawley.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":"2017-02-21T06:18:49.000Z","updated_at":"2017-02-24T13:40:17.000Z","dependencies_parsed_at":"2023-06-05T07:45:22.826Z","dependency_job_id":null,"html_url":"https://github.com/ashawley/jgit-scalacheck","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/ashawley%2Fjgit-scalacheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashawley%2Fjgit-scalacheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashawley%2Fjgit-scalacheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashawley%2Fjgit-scalacheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashawley","download_url":"https://codeload.github.com/ashawley/jgit-scalacheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406080,"owners_count":20933803,"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":["git","jgit","scala","scalacheck","unit-testing"],"created_at":"2024-07-29T19:20:21.815Z","updated_at":"2025-10-16T07:06:30.170Z","avatar_url":"https://github.com/ashawley.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JGit test suite in Scalacheck\n\nProperty-based testing of the Git Java library, [JGit](http://eclipse.org/jgit/),\nof the [Eclipse Foundation](http://eclipse.org) in Scala.\n\n**Notice**: This test suite should be operating in the system temporary file\nsystem, and not affect the user's Git congiguration or repositories, but\n**please use at your own risk**.\n\n```\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n### Getting started\n\nSBT provides a way to run all the tests with `test` or to run one or\nmore tests with `testOnly` and `testQuick` commands.  More information:\n\n- http://www.scala-sbt.org/0.13/docs/Testing.html\n\n```\n$ sbt\n\u003e test\n[info] AddCommandSpec\n[info] \n[info] AddCommand\n[info]   + addFilepattern(str)\n[info]   * addFilepattern(str).call throws(IllegalStateException). Pending until fixed\n[info]   + call.throws(Exception)\n[info] \n[info] \n[info] Total for specification AddCommandSpec\n[info] Finished in 1 second, 865 ms\n[info] 3 examples, 102 expectations, 0 failure, 0 error, 1 pending\n[info] \n[info] GitSpec\n[info] \n[info] Git\n[info]   + init\n[info]   + commit\n[info]   + merge\n[info]   + add\n[info] \n[info] \n[info] Total for specification GitSpec\n[info] Finished in 1 second, 947 ms\n[info] 4 examples, 0 failure, 0 error\n[info] \n[info] InitCommandSpec\n[info] \n[info] InitCommand\n[info]   + call\n[info]   + setDirectory(mock).throws(Exception)\n[info]   + setDirectory(dir).call\n[info] \n[info] \n[info] Total for specification InitCommandSpec\n[info] Finished in 1 second, 844 ms\n[info] 3 examples, 0 failure, 0 error\n[info] \n[info] RepositoryBuilderSpec\n[info] \n[info] RepositoryBuilder\n[info]   + build\n[info]   + setBare.build\n[info]   + setWorkTree.getWorkTree\n[info]   + setWorkTree.build\n[info] \n[info] \n[info] Total for specification RepositoryBuilderSpec\n[info] Finished in 600 ms\n[info] 4 examples, 0 failure, 0 error\n[info] \n[info] RepositorySpec\n[info] \n[info] Repository\n[info]   + create\n[info]   + getDirectory\n[info]   + getWorkTree\n[info] \n[info] \n[info] Total for specification RepositorySpec\n[info] Finished in 1 second, 68 ms\n[info] 3 examples, 0 failure, 0 error\n[info] \n[info] CheckoutCommandSpec\n[info] \n[info] CheckoutCommand\n[info]   + call\n[info]   + setName(master)\n[info]   + setName(master).call\n[info]   + setCreateBranch(true).setName(master).call\n[info]   + setCreateBranch(true).setName(master).call\n[info] \n[info] \n[info] Total for specification CheckoutCommandSpec\n[info] Finished in 1 second, 651 ms\n[info] 5 examples, 0 failure, 0 error\n[info] \n[info] MergeCommandSpec\n[info] \n[info] MergeCommand\n[info]   + call\n[info]   + include(HEAD).call\n[info]   + include(Initial commit).call\n[info]   + include(2nd commit).call\n[info]   + include(addCommit).call\n[info]   + include(editCommit).call\n[info]   + setMessage(str).call\n[info] \n[info] \n[info] Total for specification MergeCommandSpec\n[info] Finished in 1 second, 631 ms\n[info] 7 examples, 106 expectations, 0 failure, 0 error\n[info] \n[info] CommitCommandSpec\n[info] \n[info] CommitCommand\n[info]   + call\n[info]   + getAuthor\n[info]   + getCommitter\n[info]   + getMessage\n[info]   + setAuthor(mock)\n[info]   + setCommitter(mock)\n[info]   + setMessage(str)\n[info]   + setMessage(str).call\n[info]   + add.setMessage(str).call\n[info]   + add.commit.edit.commit\n[info] \n[info] \n[info] Total for specification CommitCommandSpec\n[info] Finished in 8 seconds, 916 ms\n[info] 10 examples, 307 expectations, 0 failure, 0 error\n[info] \n[info] Passed: Total 38, Failed 0, Errors 0, Passed 38, Pending 1\n[success] Total time: 11 s, completed Feb 19, 2017 10:02:24 PM```\n\nSince Scalacheck is provided by specs2, the command control of the\ntest suite supports specs2 options, and not the Scalacheck ones.  For\nthe available specs2 options, see its documentation:\n\n- http://etorreborre.github.io/specs2/guide/SPECS2-3.8.8/org.specs2.guide.UseScalaCheck.html\n\nUstomize the Scalacheck test suite by adding a implicit parameter value:\n\n```scala\nimport org.specs2.scalacheck.Parameters\nimplicit val params = Parameters(minTestsOk = 20)\n```\n\n### Dependencies\n\n- Runs on Scala version 2.11 against\n- JGit version 4.6 using\n- specs2 version 3.8,\n- Scalacheck version 1.13, and\n- Mockito version 1.9.\n\n### References\n\n- http://specs2.org\n- http://mockito.org\n- http://scalacheck.org\n- http://docs.oracle.com/javase/7/docs/api/\n- http://scala-lang.org/\n- http://github.com/centic9/jgit-cookbook\n- http://github.com/rtyley/scala-git\n- http://github.com/sbt/sbt-git\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashawley%2Fjgit-scalacheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashawley%2Fjgit-scalacheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashawley%2Fjgit-scalacheck/lists"}