Difference between revisions of "Wpkg tests"
| Line 32: | Line 32: | ||
<suffix> is for having different versions of wpkg.js in the wpkg-test folder. Example: | <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 | + | |
| + | 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. | ||
| + | |||
| + | So I can have [http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?revision=86 wpkg-111.js], [http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?revision=98 wpkg-112RC9.js] etc. and test them using '''testall 111''' or '''testall 112RC9'''. | ||
Revision as of 11:17, 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.
So I can have wpkg-111.js, wpkg-112RC9.js etc. and test them using testall 111 or testall 112RC9.