Nyaya is a Scala/Scala.JS library to:
* Test properties using random data. * Prove properties with (reasonably-sized) finite domains. * Assert properties in real data. * Generate random data. * Ensure uniqueness in random data.
Nyaya alternatives and similar packages
Based on the "Testing" category.
Alternatively, view Nyaya alternatives based on common mentions on social networks and blogs.
Gatling9.8 9.7 Nyaya VS GatlingModern Load Testing as Code
FS29.3 9.6 Nyaya VS FS2Compositional, streaming I/O library for Scala
ScalaCheck9.1 7.6 Nyaya VS ScalaCheckProperty-based testing for Scala
ScalaTest8.6 7.3 Nyaya VS ScalaTestA testing tool for Scala and Java developers
dotenv-linter8.6 7.2 Nyaya VS dotenv-linter⚡️Lightning-fast linter for .env files. Written in Rust 🦀
Diffy7.9 1.0 Nyaya VS DiffyFind potential bugs in your services with Diffy
Specs27.8 7.5 Nyaya VS Specs2Software Specifications for Scala
ScalaMeter6.6 0.0 Nyaya VS ScalaMeterMicrobenchmarking and performance regression testing framework for the JVM platform.
ScalaMock6.5 6.0 Nyaya VS ScalaMockNative Scala mocking framework
µTest6.4 6.2 Nyaya VS µTestA simple testing framework for Scala
MUnit6.0 9.0 Nyaya VS MUnitScala testing library with actionable errors and extensible APIs
Mockito Scala5.7 5.8 Nyaya VS Mockito ScalaMockito for Scala language
scalaprops5.1 7.2 Nyaya VS scalapropsproperty based testing library for Scala
cornichon4.9 9.5 Nyaya VS cornichonScala DSL for testing HTTP JSON API
Scalive4.6 0.0 L4 Nyaya VS ScaliveConnect a Scala REPL to running JVM processes without any prior setup
Minitest4.5 0.0 Nyaya VS MinitestThe super light testing library for Scala and Scala.js
Stryker4s4.4 8.8 Nyaya VS Stryker4sMutation testing for Scala
LambdaTest3.8 0.6 Nyaya VS LambdaTestFunctional testing for Scala.
Scala Test-State3.7 6.1 Nyaya VS Scala Test-StateScala Test-State.
Testcontainers-scala2.7 0.0 Nyaya VS Testcontainers-scalaThe project repository has moved to https://github.com/testcontainers/testcontainers-scala
databob0.9 0.0 Nyaya VS databobRandomised, zero-boilerplate object builders
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Nyaya or a related project?
Nyaya is a Scala/Scala.JS library to:
- Test properties using random data.
- Prove properties with (reasonably-sized) finite domains.
- Assert properties in real data.
- Generate random data.
- Ensure uniqueness in random data.
- Fast. Probably the fastest Scala random data gen / prop tester. (Benchmarks coming soon…)
- Has a nice, fluent API for generating random data. [(examples)](doc/FEATURES.md#generating-random-data) ``` scala> import nyaya.gen._ import nyaya.gen._
scala> val g = Gen.int mapTo Gen.boolean.option g: nyaya.gen.Gen[Map[Int,Option[Boolean]]] = Gen()
scala> g.samples().take(1).foreach(println) Map(609117252 -> None, -339 -> Some(true), 1684851879 -> Some(false), 78379 -> None)
<br> #### SBT setup ```scala // Property expression, evaluation, assertion. libraryDependencies += "com.github.japgolly.nyaya" %%% "nyaya-prop" % "0.9.2" // Random data generation. libraryDependencies += "com.github.japgolly.nyaya" %%% "nyaya-gen" % "0.9.2" // Property testing with random data. // Property proving. libraryDependencies += "com.github.japgolly.nyaya" %%% "nyaya-test" % "0.9.2" % Test
- [Features in more detail](doc/FEATURES.md).
- Scala 2.12+
- Scala.JS 0.6.32+ (optional)
What does Nyaya mean?
If you like what I do —my OSS libraries, my contributions to other OSS libs, my programming blog— and you'd like to support me, more content, more lib maintenance, please become a patron! I do all my OSS work unpaid so showing your support will make a big difference.
Copyright (C) 2014-2020 David Barri This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*Note that all licence references and agreements mentioned in the Nyaya README section above are relevant to that project's source code only.