TwiP

"Tests with Parameters" allows you to simply add parameters to your JUnit test methods. TwiP calls such methods with all possible combinations of their parameters... or at least some reasonable subset of commonly failing values in the case of Integers, etc. You can further reduce these values with an assume expression in an annotation, e.g. ">= 0". Alternatively you can specify a static method or field to provide the values for your test method(s), if you want to test with other than the default values. By using TwiP you change the semantics of your tests from existence to for-all quantifiers, i.e. you specify "all ravens are black" instead of "Abraxas is black", "Toni is black", etc. This moves your tests closer to an executable specification, so TwiP is a very nice addition to BDD.

License

License

Categories

Categories

Net
GroupId

GroupId

net.sf.twip
ArtifactId

ArtifactId

twip
Last Version

Last Version

3.3
Release Date

Release Date

Type

Type

jar
Description

Description

TwiP
"Tests with Parameters" allows you to simply add parameters to your JUnit test methods. TwiP calls such methods with all possible combinations of their parameters... or at least some reasonable subset of commonly failing values in the case of Integers, etc. You can further reduce these values with an assume expression in an annotation, e.g. ">= 0". Alternatively you can specify a static method or field to provide the values for your test method(s), if you want to test with other than the default values. By using TwiP you change the semantics of your tests from existence to for-all quantifiers, i.e. you specify "all ravens are black" instead of "Abraxas is black", "Toni is black", etc. This moves your tests closer to an executable specification, so TwiP is a very nice addition to BDD.
Project URL

Project URL

http://twip.sourceforge.net/

Download twip

How to add to project

<!-- https://jarcasting.com/artifacts/net.sf.twip/twip/ -->
<dependency>
    <groupId>net.sf.twip</groupId>
    <artifactId>twip</artifactId>
    <version>3.3</version>
</dependency>
// https://jarcasting.com/artifacts/net.sf.twip/twip/
implementation 'net.sf.twip:twip:3.3'
// https://jarcasting.com/artifacts/net.sf.twip/twip/
implementation ("net.sf.twip:twip:3.3")
'net.sf.twip:twip:jar:3.3'
<dependency org="net.sf.twip" name="twip" rev="3.3">
  <artifact name="twip" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.sf.twip', module='twip', version='3.3')
)
libraryDependencies += "net.sf.twip" % "twip" % "3.3"
[net.sf.twip/twip "3.3"]

Dependencies

compile (3)

Group / Artifact Type Version
org.mockito : mockito-core Optional jar 1.8.5
org.hamcrest : hamcrest-library Optional jar 1.1
org.jboss.weld : weld-se Optional jar 1.0.1-Final

provided (1)

Group / Artifact Type Version
junit : junit jar 4.5

Project Modules

There are no modules declared in this project.

Versions

Version
3.3
3.3alpha5
3.3alpha4
3.3alpha3
3.3alpha2
3.3alpha1
3.2alpha1
3.1
3.0
2.3
2.2
2.0
1.0