Hi there

I twiddled a bit and found a solution how to unit-test. It is not the fancy graphical way but there is all you need and it is fairly customizable.

  1. Create a new business-process


  1. Create a execution listener
    Download: ExecutionListener
  2. Create the Testrunner class
    Download: UnitTestRunner

How the result may look like:

alt text


  [1]: http://s24.postimg.org/58g8l9gn9/Workflow.jpg
  [2]: http://www.file-upload.net/download-8362431/ExecutionListener.java.html
  [3]: http://www.file-upload.net/download-8362430/UnitTestRunner.java.html
  [4]: http://s8.postimg.org/752yicuph/Output.jpg

asked 04.12.2013 at 09:07

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 39%

edited 04.12.2013 at 13:06

Cannot see the pictures - can you fix that?

(04.12.2013 at 10:38) Nikel Weis Nikel%20Weis's gravatar image

added the file and Picture resources.

(04.12.2013 at 13:06) Daniel Oechslin Daniel%20Oechslin's gravatar image

if someone is interested i can share my code updates as well.

(05.12.2013 at 13:18) Daniel Oechslin Daniel%20Oechslin's gravatar image
(30.05.2014 at 09:33) Genzer Hawker Genzer%20Hawker's gravatar image

I've packed your solution into a simple project to simplify the bootstrap. Feel free to try it out : unitTestIvyContext_51.iar

(31.05.2016 at 12:25) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Hope this helps anyone!

EDIT: Please see the more convenient way with mockups under: JUnit with Mockups


answered 04.12.2013 at 10:10

Daniel%20Oechslin's gravatar image

Daniel Oechslin
accept rate: 39%

edited 02.06.2014 at 12:46

(30.05.2014 at 09:34) Genzer Hawker Genzer%20Hawker's gravatar image

Now I know where the idea of running unit test on Ivy come from. Thank Daniel.

Here is my very first try out in this topic, hope it will help, it can run Unit test (include Ivy code) in Ivy Designer 6.3 and later.


2019 update: if you are using Ivy 7, you now can use Ivy Test Runner https://github.com/cavoirom/ivy-test-junit-example


answered 16.12.2016 at 11:03

vinh_'s gravatar image

accept rate: 40%

edited 15.06.2019 at 07:00

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 04.12.2013 at 09:07

Seen: 3,704 times

Last updated: 15.06.2019 at 07:00