Difference between revisions of "Wpkg tests"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(New page: == WPKG Test - Regression Test Suite for WPKG == === Intention === ''WPKG test'' is meant to make the life of the developers easier: after making changes to wpkg.js, running ''WPKG test'...)
 
Line 19: Line 19:
  
 
SVN: svn co https://wpkg.svn.sourceforge.net/svnroot/wpkg wpkg/wpkg-test
 
SVN: svn co https://wpkg.svn.sourceforge.net/svnroot/wpkg wpkg/wpkg-test
 +
 +
=== Usage ===
 +
 +
Cd to wpkg/wpkg-test-Folder and run one of the following commands on your Windows test station
 +
(make sure you have administrator rights to install/remove the test applications):
 +
 +
'''testall''' <suffix>
 +
 +
'''testset''' testN_name <suffix>
 +
 +
'''testone''' testN_name testNumber <suffix>
 +
 +
<suffix> is for having different versions of wpkg.js in the wpkg-test folder. Example:
 +
After saving [http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js latest wpkg.js] to wpkg-test/wpkg-latest.js, you run the full test suite using ''testall latest'' on command line.

Revision as of 11:11, 17 August 2009

WPKG Test - Regression Test Suite for WPKG

Intention

WPKG test is meant to make the life of the developers easier: after making changes to wpkg.js, running WPKG test makes sure that wpkg.js is running properly as before.

Theoretically, when doing test driven development, introducing new features into wpkg.js should be done by first developing new tests.

But for now, we did the following: if we have a bug, we try to make tests which reproduce the bugs, and after correction the WPKG test runs without failure. So, next time, this bug cannot be reintroduced, or at least, we see that something is going wrong.

Download

As WPKG test is only for developers/testers of Wpkg, we assume, that it is no problem to get this from svn only:

SVN: svn co https://wpkg.svn.sourceforge.net/svnroot/wpkg wpkg/wpkg-test

Usage

Cd to wpkg/wpkg-test-Folder and run one of the following commands on your Windows test station (make sure you have administrator rights to install/remove the test applications):

testall <suffix>

testset testN_name <suffix>

testone testN_name testNumber <suffix>

<suffix> is for having different versions of wpkg.js in the wpkg-test folder. Example: After saving latest wpkg.js to wpkg-test/wpkg-latest.js, you run the full test suite using testall latest on command line.