Unit Testing Jenkins

35 views
Skip to first unread message

YeiviCR

unread,
Apr 25, 2017, 1:05:27 PM4/25/17
to Jenkins Developers
Is it possible to make unit testing with this tool?
I'm asking this because my project manager wants me to investigate about jenkins in this environment, he is 100% sure jenkins can do for example check, if our page is up, and that it can move through all the application looking for buttons, I mean has the behavior of a robot basically.
Is this posible? Sorry if this a question too fool or obvious, but I'm new at this, Thank you so mucho in advance!!!

Victor Martinez

unread,
Apr 25, 2017, 3:28:53 PM4/25/17
to Jenkins Developers
As long as you write your unit tests then you can run them with Jenkins. Jenkins is "just" an automation server. There are plenty of content in https://jenkins.io/ and https://wiki.jenkins-ci.org/display/JENKINS/Home

BTW, please use the right mailing list:

Cheers

Arnaud Héritier

unread,
Apr 25, 2017, 3:44:42 PM4/25/17
to jenkin...@googlegroups.com
You have also this library but I didn't test it myself : https://github.com/lesfurets/JenkinsPipelineUnit

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3eade39d-5e24-4403-a9f4-466b11f6f508%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

TInaTinaTian L

unread,
Apr 25, 2017, 5:49:51 PM4/25/17
to Jenkins Developers
I'm using JenkinsPipelineUnit to write unit tests. Pretty useful, since you just have to mock up jenkins methods and print the task call stack and query the call stack directly.


On Tuesday, 25 April 2017 15:44:42 UTC-4, Arnaud Héritier wrote:
You have also this library but I didn't test it myself : https://github.com/lesfurets/JenkinsPipelineUnit
On Tue, Apr 25, 2017 at 9:28 PM, Victor Martinez <victormar...@gmail.com> wrote:
As long as you write your unit tests then you can run them with Jenkins. Jenkins is "just" an automation server. There are plenty of content in https://jenkins.io/ and https://wiki.jenkins-ci.org/display/JENKINS/Home

BTW, please use the right mailing list:

Cheers

On Tuesday, 25 April 2017 18:05:27 UTC+1, YeiviCR wrote:
Is it possible to make unit testing with this tool?
I'm asking this because my project manager wants me to investigate about jenkins in this environment, he is 100% sure jenkins can do for example check, if our page is up, and that it can move through all the application looking for buttons, I mean has the behavior of a robot basically.
Is this posible? Sorry if this a question too fool or obvious, but I'm new at this, Thank you so mucho in advance!!!

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

YeiviCR

unread,
Apr 26, 2017, 1:21:54 PM4/26/17
to Jenkins Developers
And also I'm trying to run a test from a test/php I have in the repository (I have jenkins lynched to subversion), but my question is how can I tell jenkins to run this test.php, as I have understood so far I have to excute a shell command, or am I wrong? and if it is so, what kind of command do I have to execute? I have searched and searched but couldn't find a reliable source yet on how to do this, or at least one that can explain it to me in an easy way (as you have noticed maybe, Im new at Jenkins)
Reply all
Reply to author
Forward
0 new messages