# How to quickly write and test URCaps?

**URL:** <https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607>\
**Category:** URCap Development\
**Created:** [June 27, 2019, 10:15am UTC](https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607 "2019-06-27T10:15:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon60474395](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@anon60474395](https://forum.universal-robots.com/u/anon60474395)\
**Post date:** [June 27, 2019, 10:15am UTC](https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607/1 "2019-06-27T10:15:08Z")

</div>

According to URCaps tutorials after making a change to code I have to run “mvn install -P ursim” and then start URSim and see if code works how I want to. So every time I change the URCaps code I have to build java code and restart URSim - it takes “a lot” of time (considering that it is necessary every time code changed).

Is there any quicker way to test code?  
Is restarting URSim necessary every time to test code?  
Is there a way to speed up restarting URSim? (I’m running URSim directly on Linux - not Virtual Machine).  
I’m using IntelliJ IDEA.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [June 27, 2019, 5:24pm UTC](https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607/2 "2019-06-27T17:24:40Z")

</div>

As the java code has to be compiled and the urcap itself has to be installed as a plugin in polyscope i can‘t see of a faster way of testing the whole urcap. You might wanna use module tests tho😉

---

<div class="post-metadata">

**Author:** ![anon60474395](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@anon60474395](https://forum.universal-robots.com/u/anon60474395)\
**Post date:** [June 28, 2019, 2:54pm UTC](https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607/3 "2019-06-28T14:54:36Z")

</div>

Thank you for quick answer 🙂 That’s what I thougt… so the only solution is much faster computer 🙂

---

<div class="post-metadata">

**Author:** ![anon62599736](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@anon62599736](https://forum.universal-robots.com/u/anon62599736)\
**Post date:** [July 3, 2019, 4:20pm UTC](https://forum.universal-robots.com/t/how-to-quickly-write-and-test-urcaps/4607/4 "2019-07-03T16:20:51Z")

</div>

Hey m.birkholz,  
What does a module test involve?
