{"id":13800343,"url":"https://github.com/scalaprops/scalaprops","last_synced_at":"2025-04-14T19:18:41.919Z","repository":{"id":31510929,"uuid":"35075268","full_name":"scalaprops/scalaprops","owner":"scalaprops","description":"property based testing library for Scala","archived":false,"fork":false,"pushed_at":"2025-03-31T20:05:22.000Z","size":1954,"stargazers_count":278,"open_issues_count":10,"forks_count":20,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-14T19:18:37.025Z","etag":null,"topics":["dotty","mersenne-twister","prng","property-based-testing","scala","scala-js","scala-native","scala3","scalaprops","scalaz","testing"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"udacity/self-driving-car","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scalaprops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-05T03:19:11.000Z","updated_at":"2025-03-17T10:17:17.000Z","dependencies_parsed_at":"2023-12-26T06:32:54.561Z","dependency_job_id":"598ba523-7b1d-45c4-9466-61384efe58c5","html_url":"https://github.com/scalaprops/scalaprops","commit_stats":{"total_commits":1250,"total_committers":12,"mean_commits":"104.16666666666667","dds":"0.21919999999999995","last_synced_commit":"73cb210363e2808671fb1ed87bcd5c73e1e75854"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalaprops%2Fscalaprops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalaprops%2Fscalaprops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalaprops%2Fscalaprops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalaprops%2Fscalaprops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalaprops","download_url":"https://codeload.github.com/scalaprops/scalaprops/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248943458,"owners_count":21186958,"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":["dotty","mersenne-twister","prng","property-based-testing","scala","scala-js","scala-native","scala3","scalaprops","scalaz","testing"],"created_at":"2024-08-04T00:01:11.638Z","updated_at":"2025-04-14T19:18:41.898Z","avatar_url":"https://github.com/scalaprops.png","language":"Scala","funding_links":[],"categories":["Table of Contents","测试","Testing","Unit Tests"],"sub_categories":["Testing"],"readme":"# scalaprops\n\n[![Scala.js](https://www.scala-js.org/assets/badges/scalajs-1.0.0.svg)](https://www.scala-js.org)\n[![scaladoc](https://javadoc.io/badge2/com.github.scalaprops/scalaprops-all_3/javadoc.svg)](https://javadoc.io/doc/com.github.scalaprops/scalaprops-all_3)\n\nproperty based testing library for Scala\n\n### features\n- real `scala.FunctionN` generators using [`Cogen`](gen/src/main/scala/scalaprops/Cogen.scala) (aka [CoArbitrary](https://hackage.haskell.org/package/QuickCheck-2.8.1/docs/Test-QuickCheck-Arbitrary.html#t:CoArbitrary) in QuickCheck). scalaprops can generate not only constant Functions\n- flexible parameter settings for each test( [ScalaCheck doesn't have this feature](https://github.com/typelevel/scalacheck/issues/120) )\n- timeout as soon as possible\n- flexible law checking like [discipline](https://github.com/typelevel/discipline)\n - discipline uses only `String` for test id. but scalaprops can use other than `String`\n- scalaz integration\n - laws for scalaz typeclasses\n - [`Gen`](gen/src/main/scala/scalaprops/Gen.scala) and [`Cogen`](gen/src/main/scala/scalaprops/Cogen.scala) instances of scalaz datatypes\n- immutable random number generator\n - scalaprops does not use `scala.util.Random` because `scala.util.Random` is mutable\n - default implementation is [Mersenne Twister](http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html) (JVM, scala-native) or [Tiny Mersenne Twister](http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/TINYMT/) (Scala.js)\n- [Scala.js](https://www.scala-js.org/) support\n- [scala-native](http://scala-native.org) support. see \u003chttps://github.com/scalaprops/scalaprops-native-example\u003e\n- [deterministic testing](#deterministic-testing)\n\n### latest stable version\n\n[please use sbt plugin because there are some convenient features.](https://github.com/scalaprops/sbt-scalaprops)\n\n\n\u003cdetails\u003e\u003csummary\u003esetup without sbt plugin\u003c/summary\u003e\n\n```scala\ntestFrameworks += new TestFramework(\"scalaprops.ScalapropsFramework\")\n\nparallelExecution in Test := false // currently, does not support parallel execution\n\nlibraryDependencies += \"com.github.scalaprops\" %% \"scalaprops\" % \"0.9.1\" % \"test\"\n```\n\n```scala\nlibraryDependencies += \"com.github.scalaprops\" %% \"scalaprops-scalaz\" % \"0.9.1\" % \"test\"\n```\n\n\u003c/details\u003e\n\n\n- [API Documentation](https://oss.sonatype.org/service/local/repositories/releases/archive/com/github/scalaprops/scalaprops-all_2.12/0.9.1/scalaprops-all_2.12-0.9.1-javadoc.jar/!/scalaprops/index.html)\n\n\n![screencast](screencast.gif)\n\n### deterministic testing\n\nScalaprops emitting which seed it started with during a failing test, and providing an interface `--seed=\u003cvalue\u003e` for re-running the failing test with the same seed.\n\n![deterministic-testing](deterministic-testing.gif)\n\n### examples\nSee [scalaprops-example](https://github.com/scalaprops/scalaprops-examples) project.\n\n### for scalaz 7.1.x\n\n\u003chttps://github.com/scalaprops/scalaprops/tree/0.1.x\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalaprops%2Fscalaprops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalaprops%2Fscalaprops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalaprops%2Fscalaprops/lists"}