how to run the test suite?

If you have a question about the git repository and the code, or if you have code to propose then please post in this forum.
Do not post request here.
Post Reply
m8ram
Posts: 9
Joined: Sat Mar 17, 2012 10:37 am

how to run the test suite?

Post by m8ram » Sun Jul 21, 2013 9:48 am

Hi,

I'd like to try writing a test but I'm unable to even run one of the tests available in SVN. I've found several conflicting instructions in various places.

1) Where should the test directory be located?
I started looking at http://code.google.com/p/wagic/wiki/TestSuite.
It just says to look for a directory named "test".
In the 0.19 version there is an empty test directory in the User directory, by default there is no such directory in the Res directory.

I even downloaded the 0.18.6 version again it too has an empty test directory in the User directory.
The Res directory contains only the core_0186.zip file.

I tried creating a test directory in both version in Res and tried various files (see question 2) in both but I never get an option to start a test when I start the application.

2) What is the correct name for the file listing the tests to be run?
http://code.google.com/p/wagic/wiki/TestSuite first says "This folder contains three important types of files: test.txt " but then it goes on to say that "To run the test suite, make sure that the filename of the test(s) that you want to run is specified in tests.txt".
Another source I found http://wololo.net/the-testing-suite/ says "You will also create a file named _tests.txt"

I tried test.txt, tests.txt and _tests.txt to no avail.

Another note: viewtopic.php?f=4&t=682 contains a post with links:
Test Suite reference -> http://wololo.net/miki/Wagic/TestSuite returns 404
and
The testing Suite 1 (http://wololo.net/wagic/the-testing-suite/)
The testing Suite 2 (http://wololo.net/wagic/2009/07/13/the-testing-suite/)
the last two simply return the same page.

If Windows is the best platform to test things on wouldn't it be best to ship all available tests with it by default? Maybe with an empty test.txt (or whatever) file so it won't run any tests by default but so at least anyone can immediately get started testing.

Regards

wololo
Site Admin
Posts: 3727
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: how to run the test suite?

Post by wololo » Mon Nov 04, 2013 3:59 am

m8ram wrote:Hi,

I'd like to try writing a test but I'm unable to even run one of the tests available in SVN. I've found several conflicting instructions in various places.

1) Where should the test directory be located?
I started looking at http://code.google.com/p/wagic/wiki/TestSuite.
It just says to look for a directory named "test".
In the 0.19 version there is an empty test directory in the User directory, by default there is no such directory in the Res directory.

I even downloaded the 0.18.6 version again it too has an empty test directory in the User directory.
The Res directory contains only the core_0186.zip file.

I tried creating a test directory in both version in Res and tried various files (see question 2) in both but I never get an option to start a test when I start the application.

2) What is the correct name for the file listing the tests to be run?
http://code.google.com/p/wagic/wiki/TestSuite first says "This folder contains three important types of files: test.txt " but then it goes on to say that "To run the test suite, make sure that the filename of the test(s) that you want to run is specified in tests.txt".
Another source I found http://wololo.net/the-testing-suite/ says "You will also create a file named _tests.txt"

I tried test.txt, tests.txt and _tests.txt to no avail.

Another note: viewtopic.php?f=4&t=682 contains a post with links:
Test Suite reference -> http://wololo.net/miki/Wagic/TestSuite returns 404
and
The testing Suite 1 (http://wololo.net/wagic/the-testing-suite/)
The testing Suite 2 (http://wololo.net/wagic/2009/07/13/the-testing-suite/)
the last two simply return the same page.

If Windows is the best platform to test things on wouldn't it be best to ship all available tests with it by default? Maybe with an empty test.txt (or whatever) file so it won't run any tests by default but so at least anyone can immediately get started testing.

Regards
1) They are in bin/Res/test
You will not find the tests in the Wagic release, they are only available in the git (former svn) repository.

2) the name is _tests.txt

See:
https://github.com/WagicProject/wagic/t ... n/Res/test
and
https://github.com/WagicProject/wagic/b ... _tests.txt

Post Reply