Results 1 to 10 of 66

Thread: Unit testing time! Introducing VDFUnit, xUnit for Visual Dataflex

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #40
    Join Date
    Jan 2014
    Location
    Italy
    Posts
    219

    Default Re: Unit testing time! Introducing VDFUnit, xUnit for Visual Dataflex

    Quote Originally Posted by Bram View Post
    how did you get it working within Jenkins
    Sorry for my late response.

    I create very simple project in Jenkins, and I setup them to compile my DF programs, the unit test programs, run the tests and sometimes also build NSIS Installers. All these activities in one Jenkins project for each DF workspace. Here there are some screenshot.

    1) Get the project from repository (SVN / GIT ...)

    Click image for larger version. 

Name:	01 - Build triggers.jpg 
Views:	51 
Size:	51.2 KB 
ID:	15536


    2) Setup the build environment; if the compilation is too long it means that something is wrong, so mark the build as failed

    Click image for larger version. 

Name:	02 - Build environment.jpg 
Views:	37 
Size:	49.8 KB 
ID:	15535


    3) I run some batch script to copy the Libraries located in the Dataflex folder (ex. DataFlex Reports) into the Jenkins project workspace; for me it is important because in my SWS files the libraries are referenced using relative path.

    Click image for larger version. 

Name:	03 - Batch to copy libraries into project workspace.jpg 
Views:	37 
Size:	36.3 KB 
ID:	15537


    4) run the dataflex compiler and compile my DF programs and unit test program; in some projects I also run a batch script to delete all .ERR in the \AppSrc\ folder

    Click image for larger version. 

Name:	04 - Compile DF project.jpg 
Views:	38 
Size:	34.2 KB 
ID:	15538

    5) run the unit tests

    Click image for larger version. 

Name:	06 - Run the unit tests programs.jpg 
Views:	40 
Size:	30.2 KB 
ID:	15540

    6) publish unit tests result

    Click image for larger version. 

Name:	07 - Publish test results.jpg 
Views:	52 
Size:	100.8 KB 
ID:	15541


    here you can also run task to compile the installer and publish the build somewhere.

    It is a very basic usage of Jenkins but it allow me to automatically compile a project in multiple DF versions, check the unit tests and update the installers. Has anyone any experience of using Jenkins with DF to share? For example to create integration tests with the DB?

    Kind regards
    Luca
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	05 - Compile UnitTest Project.jpg 
Views:	47 
Size:	35.7 KB 
ID:	15539  

Similar Threads

  1. Replies: 6
    Last Post: 21-Oct-2009, 12:07 PM
  2. Unit testing, anyone?
    By Ola Eldoy in forum Windows Applications
    Replies: 1
    Last Post: 23-Oct-2008, 06:11 AM
  3. Visual DataFlex 12.1 Beta 3 is now available for testing!
    By Stephen W. Meeley in forum Windows Applications
    Replies: 0
    Last Post: 1-Sep-2007, 09:33 AM
  4. Visual DataFlex 12.1 Beta 2 is now available for testing!
    By Stephen W. Meeley in forum Windows Applications
    Replies: 0
    Last Post: 24-Aug-2007, 05:45 PM
  5. Visual DataFlex 12.1 is now available for testing!
    By Stephen W. Meeley in forum Windows Applications
    Replies: 0
    Last Post: 25-Jul-2007, 05:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •