b

bond

Bond is a small library that can be used to spy values and mock functions during tests. Spying is a replacement for writing the assertEquals in your test, which are tedious to write and even more tedious to update whem your test setup or code inevitably changes. With Bond, you separate what is being verified, e.g., the variable named output, from what value it should have. This way you can quickly spy several variables, even have structured values such as lists or dictionaries, and these values are saved into an observation log that is saved for future reference. If the test observations are different you have the option to interact with a console or visual tool to see what has changed, and whether the reference set of observations need to be updated.
https://github.com/necula01/bond
The BSD 2-Clause License
Erik Krogen George Necula
文件下载
文件名 操作
bond-0.2.0.jar 下载
bond-0.2.0.pom 下载
bond-0.2.0-sources.jar 下载
Apache Maven
<dependency>
  <groupId>org.necula.bond</groupId>
  <artifactId>bond</artifactId>
  <version>0.2.0</version>
</dependency>
Gradle Groovy
implementation 'org.necula.bond:bond:0.2.0'
Gradle Kotlin
implementation("org.necula.bond:bond:0.2.0")
Scala SBT
libraryDependencies += "org.necula.bond" % "bond" % "0.2.0"
Groovy Grape
@Grapes(
  @Grab(group='org.necula.bond', module='bond', version='0.2.0')
)
Apache Ivy
<dependency org="org.necula.bond" name="bond" rev="0.2.0" />
Leiningen
[org.necula.bond/bond "0.2.0"]
Apache Buildr
'org.necula.bond:bond:jar:0.2.0'