Arquillian makes integration testing a breeze!
Arquillian brings test execution to the target runtime so you don't have to manage the runtime from the test (or project build). To invert this control, Arquillian wraps a lifecycle around test execution that provides the following services:
- Manages the lifecycle of one or more containers
- Bundles the test case, dependent classes and resources as ShrinkWrap archives
- Deploys the archives to the containers
- Enriches the test case with dependency injection and other declarative services
- Executes the tests inside (or against) the containers
- Returns the results to the test runner for reporting
Arquillian runs with Java 1.5 and above, integrates seamlessly with familiar testing frameworks such as JUnit and TestNG and allows tests to be launched using existing IDE, Ant and Maven test plugins.
Sure thing. Consider an integration test for an EJB. How do you start the container? Deploy the EJB? Get the EJB reference? Run the test in an IDE? Use any EJB container? Arquillian takes care of all that!
Did you think it could be this easy?
That's just the beginning of what's possible!
Latest Project Blog Entries
Latest Community Blogs and Articles
- Integrating Arquillian and JBehave
- Feb 25, 2014 1:44 PM
- Three Arquillian extensions for behavior-driven development in the container Tags: arquillian bdd jbehave author:@andreiserea
- Widget testing with Arquillian Graphene
- Feb 20, 2014 4:20 AM
- Integration testing is important but also difficult. With frameworks like WebDriver we can connect to any HTML element in the browser. This is a huge step forward. We are able to inspect what is available on the screen, in the browser. But coding in it is error prone. Any small change in the page layout and your test will fail because the element isn’t found anymore. Another challenge is to keep your test code object oriented and readable. Since everything is a WebElement in your code, you must resort to encapsulation and page fragments to not end up with large test methods which are unreadable. Tags: arquillian graphene webdriver author:@rdebusscher
- How to run parameterized junit arquillian tests
- Feb 14, 2014 3:29 PM
- Arquillian is an awesome tool for testing java apps written in the EE ecosystem. It allows you to run your tests within the actual application server, so you don't have to mock your services or dependencies. Instead you use them exactly the same way you use them within your application. However, because of the way Arquillian works with JUnit (as a special runner) you cannot use many JUnit's advanced features (there can only be one @RunWith annotation). Namely I was missing the ability to run parameterized tests or theories. Tags: arquillian junit author:@tonispool