Contenu connexe Similaire à Integration test with Arquillian and JBoss AS 7 Similaire à Integration test with Arquillian and JBoss AS 7 (20) Integration test with Arquillian and JBoss AS 76. TEST DESIGN
IMPLEMENTATION
7. 経験
• 前職
– テスト駆動開発( TDD )のトレーニング
– ビジネスロジックのユニットテスト
• よくあった質問
11. インテグレーションテストの自動化
• 作成が大変
– テスト作成に必要なスキル
– テスト結果の収集は?
• 実行に時間がかかる
– ビルド、サーバ起動、デプロイ…
– Unit Test の目標は” 10 秒以内”
• テストコードが脆い
– UI の変更
– DB の変更、ネットワーク遅延 etc..
12. Unit Test Integration Test System Test
テストコードの脆弱性 ★★★★★ ★★ ★
テスト作成容易性 ★★★★★ ★★ ★
バグ調査容易性 ★★★★★ ★★★ ★
テスト実行時間 ★★★★★ ★★★ ★
実環境との差 ★ ★★★★ ★★★★★
※ 発表者の主観です
15. is ...
• The Extendable Enterprise Test Platform
or
• A container-oriented testing platform
or
• An integration testing framework for Containers
21. Container management
• Embedded
– Same JVM as test runner
– Lifecycle controlled by Arquillian
• Remote
– Separete JVM from test runner
– Arquillian connects to running container
– Tests executed over remote protocol
• Managed
– Remote with lifecycle management
22. Managed mode
Arquillian class
(extends
BlockJUnit4ClassRunner)
22
27. Supported containers
WAS
WebLogic
https://docs.jboss.org/author/display/ARQ/Complete+Container+Reference
29. ● 速度測定
● コンテナの使い分け
29
31. Unit Test Integration Test System Test
テストコードの脆弱性 ☆☆☆☆☆ ☆☆★★ ☆
テスト作成容易性 ☆☆☆☆☆ ☆☆★★ ☆
バグ調査容易性 ☆☆☆☆☆ ☆☆☆★ ☆
テスト実行時間 ☆☆☆☆☆ ☆☆☆ ☆
実環境との差 ☆ ☆☆☆☆ ☆☆☆☆☆
※ あくまでも発表者の主観です
32. Reference
• Arquillian - JBoss Community
http://www.jboss.org/arquillian
• Shrinkwrap - JBoss Community
http://www.jboss.org/shrinkwrap/
• Jboss AS 7.0.2 Quickstarts (includes kitchensink)
http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-quickstarts-7.0.2.CR1-dist.zip
• Real Java Enterprise Testing
http://slidesha.re/q06oXs
• Throwing complexity over the wall: Rapid development for enterprise Java
http://slidesha.re/vl8Hkw
• JUnit
http://junit.org/
• Git
http://git-scm.com/
• Jenkins CI
http://jenkins-ci.org/
• JBoss Tools
http://www.jboss.org/tools
• Arquillian - Alien Species Wiki - Aliens, UFOs, Space aliens
http://aliens.wikia.com/wiki/Arquillian