Since we wrote this post we didn't laze around. Check our latest announcement.
The Arquillian team is proud to announce the 1.0.0.Alpha1 release of the Arquillian TestRunner Spock component!
Some of the highlights in this release
This is the very first release of Arquillian Spock Test Runner. To quote creators of this great framework “Spock is a testing and specification framework for Java and Groovy applications. What makes it stand out from the crowd is its beautiful and highly expressive specification language.” And we totally agree with them! Writing tests in behavior-driven development manner help developers to focus on features which they need to deliver instead of diving into technical details while writing tests. Those details might change over the time anyway.
Now you can run your spock tests powered by Arquillian (both embedded and remote containers are supported)!
Here’s a tiny little piece of code where you can see yourself how cool Spock and Arquillian are!
class AccountServiceSpecification extends Specification {
@Deployment
def static JavaArchive "create deployment"() {
return ShrinkWrap.create(JavaArchive.class)
.addClasses(AccountService.class, Account.class, SecureAccountService.class)
.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
}
@Inject
AccountService service
def "Transferring between accounts should result in account withdrawal and deposit"() {
when: "Money has been transfered from one account to another"
service.transfer(from, to, amount)
then: "Balance must be updated"
from.balance == fromBalance
to.balance == toBalance
where:
from << [new Account(100), new Account(10)]
to << [new Account(50), new Account(90)]
amount << [50, 10]
fromBalance << [50, 0]
toBalance << [100, 100]
}
}
What is Arquillian?
Arquillian is open source software that empowers you to test JVM-based applications more effectively. Created to defend the software galaxy from bugs, Arquillian brings your test to the runtime so you can focus on testing your application's behavior rather than managing the runtime. Using Arquillian, you can develop a comprehensive suite of tests from the convenience of your IDE and run them in any IDE, build tool or continuous integration environment.
Release details
Published artifacts
org.jboss.arquillian.spock
-
org.jboss.arquillian.spock
»
arquillian-spock-core
jar
javadoc
pom
-
org.jboss.arquillian.spock
»
arquillian-spock-standalone
jar
javadoc
pom
-
org.jboss.arquillian.spock
»
arquillian-spock-container
jar
javadoc
pom
Release notes and resolved issues
3
First preview release of Arquillian integration with Spock
- Feature Request
-
- ARQ-636 - Add Remote support to the Spock TestRunner
- ARQ-675 - Update Spock Test Runner pom setup to match other extensions
Thanks to the following list of contributors:
Bartosz Majsak, Aslak Knutsen, Antony Blakey