Hi,

i am wondering if there are tools to support TDD within an xIvy development cycle? My investigations in this area brought no valuable results.

What i am looking for is the possibility to write the test scenarios for functional processes and automatic test runner to perform the tests on demand or triggered by kind of events (deployment on the server, check in to the version control system etc.)

Any ideas to increase test coverage of the xIvy projects (it is near zero at the time) are welcome.

Best regards,

Mikhail Galyutin.

asked 26.03.2014 at 10:48

mgalyutin's gravatar image

mgalyutin
(suspended)
accept rate: 0%


To the comment about unit and functional tests before deployment of a project:

There is a something similar like a test framework for processes:

https guidelines.soreco.ch/projects/guides/wiki/TestFramework

But no guarantees if it works as intended. For unit tests of java clasees you can use JUnit, as usual.

link

answered 28.03.2014 at 14:15

Sergej's gravatar image

Sergej
(suspended)
accept rate: 0%

edited 28.03.2014 at 16:52

Thanks for sharing. Unfortunately project referenced requires another xtst_ria project from development svn. As far as i understand the idea, project purpose is to supply test runtime environment for web services and callable sub processes. The 'normal' processes are out of the scope.

(29.03.2014 at 17:45) mgalyutin mgalyutin's gravatar image

ok understand. But this is the only framework in Ivy I know. We use internal JUnit and a combination of test-sub-processes to compensate a lack of functionality. In addition I'm experimenting with selenium/etc (independent from Ivy) for frontend.
A framework stack for TDD in Ivy, I would also like to know.

(02.04.2014 at 10:50) Sergej Sergej's gravatar image

+1

Module testing (processes), Mocking (Ivy.*) and high Test Coverage, as a goal (unit, integration), are actual topics.

Any ideas are welcome.


Regards

Sergej

link

answered 26.03.2014 at 11:24

Sergej's gravatar image

Sergej
(suspended)
accept rate: 0%

edited 26.03.2014 at 11:35

In my test case i am trying to implement, intention is to check if a particular session method called with parameters expected. Is it what you mean by mocking Ivy.*?

(26.03.2014 at 13:18) mgalyutin mgalyutin's gravatar image

For example in a unit test (JUnit) a method XYZ() has to be tested. But inside of its method is a call of logger(ch.ivyteam.log.Logger). If unit tests run outside of Ivy environment, Logger should be mocked, to not distort the results of a test. That was ment.
Inside of processes (f.e. functional) we try to implement other "test processes", to test transformation of data inside of particular-processes (sub-processes). We call them (test processes) from outside and they are only for testing purposes. Like unit tests with asserts.

(26.03.2014 at 14:26) Sergej Sergej's gravatar image

Is there some automation to run a unit tests/functional tests (i.e. before project deployment)?

(28.03.2014 at 09:38) mgalyutin mgalyutin's gravatar image

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×8

Asked: 26.03.2014 at 10:48

Seen: 7,421 times

Last updated: 02.04.2014 at 10:50