-1

.

Pls. Help me to identify difference between arqulian testing and spock testing plugin or others . . How they are different from each other. ?

Ashay Jain
  • 98
  • 6

1 Answers1

1

Arquillian: testing inside the container which means that a deployable archive (jar, war or ear) is created automatically, it is deployed in the container (tomcat, jboss, glassfish etc) and then run tests in it. So you "write real tests", you don't need to mock anything and you can test your application end-to-end (if needed). Spock: used for unit testing and has its own mock mechanisms. It has a lot of similarities with jUnit or TestNG. Difference is that you must write your tests in Groovy (not in Java).

alex
  • 705
  • 9
  • 21
  • It should be noted that the majority of java code you would write is valid Groovy. Groovy is more like Java+1 than a separate language – ScientificMethod Oct 12 '15 at 21:41
  • Thanks for help. But still a question. .we used to write integration test cases. How arquilian is different from existing integration tests. – Ashay Jain Oct 13 '15 at 09:43
  • 2
    how did you use to write your integration tests? – alex Oct 13 '15 at 13:42
  • I understood by implementing it. Thanks All fpr participation :) – Ashay Jain Jan 14 '16 at 14:32
  • Alex:: initially i was working on grails. So it provides its own integration test layers API's throught which i can write and execute my applications test case – Ashay Jain Jan 14 '16 at 14:50