You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Francois Mireaux (JIRA)" <ji...@apache.org> on 2009/11/16 17:25:39 UTC

[jira] Created: (AXIS2C-1412) Very simple unit test framework and tests corrections

Very simple unit test framework and tests corrections
-----------------------------------------------------

                 Key: AXIS2C-1412
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1412
             Project: Axis2-C
          Issue Type: Test
            Reporter: Francois Mireaux


Here is a proposition for a very simple unit test framework, used for rewrite some of tests (numerous errors found).

Tests are also modified to be used under Windows (tested with the C compiler of Visual Studio 2008 Express Edition) with the help of a JScript program which computes a Makefile extension for tests (file makeTests) analysing files Makefile.am. After executing buid\win32\build.bat, one can use build\win32\buildtests.bat to build and execute all defined tests. An optionnal parameter ciould be used to build and execute one specific test defined by test_<nn> (see makeTests file).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1412) Very simple unit test framework and tests corrections

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Mireaux updated AXIS2C-1412:
-------------------------------------

    Attachment: tests.patch

Caution, patch also contains a bug correction in util\url.c.

Two include files are defined in cutest\include to write tests :
     tunit.h   : simple macros and functions
     ut_http_server.h  : help function to start and stop a thread executing HTTP server (on Unix needs the patch proposed in JIRA-1411)

Windows JScript program (genmktests.js) is a bit of mish-mash but seems to be the only solution as libraries structure and names are not the same on Unix and Windows.

The first test failure aborts test processing which is arguable but permits a simple error detection without reading log files.

I could go on working on rewrite and extend tests : some failures don't stop tests, some tests don't really check that all is right... But I need to know if general principles are OK.


> Very simple unit test framework and tests corrections
> -----------------------------------------------------
>
>                 Key: AXIS2C-1412
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1412
>             Project: Axis2-C
>          Issue Type: Test
>            Reporter: Francois Mireaux
>         Attachments: tests.patch
>
>
> Here is a proposition for a very simple unit test framework, used for rewrite some of tests (numerous errors found).
> Tests are also modified to be used under Windows (tested with the C compiler of Visual Studio 2008 Express Edition) with the help of a JScript program which computes a Makefile extension for tests (file makeTests) analysing files Makefile.am. After executing buid\win32\build.bat, one can use build\win32\buildtests.bat to build and execute all defined tests. An optionnal parameter ciould be used to build and execute one specific test defined by test_<nn> (see makeTests file).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1412) Very simple unit test framework and tests corrections

Posted by "Francois Mireaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Mireaux updated AXIS2C-1412:
-------------------------------------

    Attachment: tests.patch

Improvement of test mini-framework & usage in tests.

Please, comment !

> Very simple unit test framework and tests corrections
> -----------------------------------------------------
>
>                 Key: AXIS2C-1412
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1412
>             Project: Axis2-C
>          Issue Type: Test
>            Reporter: Francois Mireaux
>         Attachments: tests.patch, tests.patch
>
>
> Here is a proposition for a very simple unit test framework, used for rewrite some of tests (numerous errors found).
> Tests are also modified to be used under Windows (tested with the C compiler of Visual Studio 2008 Express Edition) with the help of a JScript program which computes a Makefile extension for tests (file makeTests) analysing files Makefile.am. After executing buid\win32\build.bat, one can use build\win32\buildtests.bat to build and execute all defined tests. An optionnal parameter ciould be used to build and execute one specific test defined by test_<nn> (see makeTests file).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AXIS2C-1412) Very simple unit test framework and tests corrections

Posted by "S.Uthaiyashankar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

S.Uthaiyashankar updated AXIS2C-1412:
-------------------------------------

    Component/s: tests

> Very simple unit test framework and tests corrections
> -----------------------------------------------------
>
>                 Key: AXIS2C-1412
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1412
>             Project: Axis2-C
>          Issue Type: Test
>          Components: tests
>            Reporter: Francois Mireaux
>         Attachments: tests.patch, tests.patch
>
>
> Here is a proposition for a very simple unit test framework, used for rewrite some of tests (numerous errors found).
> Tests are also modified to be used under Windows (tested with the C compiler of Visual Studio 2008 Express Edition) with the help of a JScript program which computes a Makefile extension for tests (file makeTests) analysing files Makefile.am. After executing buid\win32\build.bat, one can use build\win32\buildtests.bat to build and execute all defined tests. An optionnal parameter ciould be used to build and execute one specific test defined by test_<nn> (see makeTests file).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.