On Mon, Oct 17, 2016 at 8:45 PM, Sergi Almacellas Abellana <se...@koolpi.com
> wrote:

> El 17/10/16 a les 15:32, Markus Bala ha escrit:
>
>> Hi All,
>>
>> Seeing the official modules have Test folder, it contains test case and
>> scenario.
>> May I know how to run test case?
>>
>
> You have several possibilities here:
>
> 1. Run the run-test.py[1] script from the tryton server using the -m
> <module_name> to execu
> 2. Execute python setup.py test with the DB_NAME key set in the
> environemnt. For example, for runing in a memory sqlite database you can
> use the following command:
>
> DB_NAME=:memory: python setup.py test
>
> Note: The second will install the package and the required dependencies.
>
>> or when can I find the documentation for unittest?
>> 1. What are prerequisite?
>> 2. How to write?
>> 3. How to run?
>>
>
> I've done some talk about it in the past, you have the slides avaialble
> here [2] and the video record [3] (sorry but only in spanish)
>
> Hope it helps!
>
> [1] http://hg.tryton.org/trytond/file/9c2eb1b04df8/trytond/tests
> /run-tests.py
> [2] http://pokoli.github.io/testing-in-tryton/#/
> [3] https://www.youtube.com/watch?v=cGfz3MaNxec


 Hi Sergi,

thank you for your comment.
Now I understand where to start to write my unit test. I will try later.

I have a question.
Is it possible Proteus able to call method/function?

best regard

>
> --
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk
>
> --
> You received this message because you are subscribed to the Google Groups
> "tryton-dev" group.
> To view this discussion on the web visit https://groups.google.com/d/ms
> gid/tryton-dev/88795a5f-73ba-63fa-2716-2b6dd762e968%40koolpi.com.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/CAOzpWEFUEzOiPjvAML4b37p3Dz%3DFeEHKqS-pR3mRrog5uvKW8g%40mail.gmail.com.

Reply via email to