1

Topic: Council about usage of Nunit extensions is necessary

Good afternoon
For testing decided to use engine Nunit 3
At us in system all tests are stored in basis.
Our internal engine reads out a name test
Filter parameters (what of tests to launch)
Also starts up the test and the received result it is written to basis.
That is tests can be  as through  gui the interface (it at them is not finished yet but to use it it is possible) and automatically in system.
Actually a part of the code by start of tests took from nunit-gui
Start is carried out in such line.

Runner. RunAsync (this, testItem. GetTestFilter ());

That is this mechanism selects the necessary test, launches it fixes result as necessary.
The further development of system demands in certain cases together with a test name to give on an input specific parameters
And here arise variants to select from which the most elegant I ask to help.
1) to Write own Runner their successor  which at start of tests transferred parameters
2) to Use what that variant ISuiteBuilder, ITestCaseBuilder
Though they as that seems to me not absolutely that is necessary (here I while I float)

2

Re: Council about usage of Nunit extensions is necessary

I will describe idea on another
The list of tests is stored in a file (or in basis but it is not basic).
In a type:
1 name of the test
2 link to Dll
3 parameters of the filter (what test from  to launch)
4 parameters for test start. (Them also I do not know as to apply)
I assume that there will be many identical tests on the code issued in style NUnit.
For example the specialized test fulfilling SQL request and checking result with the standard.
# the test code will be one, and the request and expected results will be test input parameters.
Similarly test of check of the installed programs and presence of the necessary files for operation.
To load  and to launch the test the necessary test simply.
Problem in that I do not know as before start of the test a tax on an input the necessary parameters  from a file.
It is possible to manage certainly in that case generally without NUnit.
But parallely will also standard NUnit tests which it would be desirable to launch from this the list.

3

Re: Council about usage of Nunit extensions is necessary

Now I tend to such decision.
Before will launch the test I the special table are written down
process, a name ,  the current test and input parameters of the test in the form of
The triggered test knowing  process and the computer name finds the input parameters.
After test end this data will be remote.

4

Re: Council about usage of Nunit extensions is necessary

sergiy_s, and you sometime wrote tests? What?

5

Re: Council about usage of Nunit extensions is necessary

Whether It is possible to be the programmer and not to write tests?
I write much Unit tests.
Some my tests strictly speaking complex tests.
There are also the load.
The tool for tests always NUnit.
The given task is necessary for this purpose what to automate performance of tests in system.
It is necessary to standardize as much as possible a spelling and running of various tests.

6

Re: Council about usage of Nunit extensions is necessary

Whether

sergiy_s wrote:

It is possible to be the programmer and not to write tests?
I write much Unit tests.

Whence then there was an idea to transfer input parameters ?

7

Re: Council about usage of Nunit extensions is necessary

Imagine one test the first parameter select, and the second certain  speaking to the test that should be as a result.
AND SO THE TEST SUCH ONE.
It is issued in style Nunit, that is

[Test, TestCaseSource ("")]
public void SqlTest (string sql, string param)
{...}

Function anyCases should to take whence that itself  and that that it  to return.

8

Re: Council about usage of Nunit extensions is necessary

Here so is more true
TestCaseSource ("anyCases")

9

Re: Council about usage of Nunit extensions is necessary

sergiy_s, whence and what for there was an idea to write tests thus?

10

Re: Council about usage of Nunit extensions is necessary

offer a variant better
After an update or at any moment of on demand it is necessary to launch system check
As start of the arbitrary tests or groups of tests should be possible.
Part of tests it select in basis.
Adjustment of tests should be whenever possible without studio and not programmers.
And the result of tests in a type what object is checked up also result should lay down in basis.
If to take data driven test which take the data from basis through TestCaseSource they can be launched all at once. They cannot be united in groups.
I considered a variant not to use nunit for such tests but then it will be necessary to write the engine which to push those our tests that nunit tests.