Re: [openstack-dev] [Ceilometer] Why ceilometer do notoffer run_tests.sh script?

2015-04-29 Thread Chris Dent

On Wed, 29 Apr 2015, Luo Gangyi wrote:


Yes, we can do as you said. But still a bit weird using database in unit tests 
:)


As stated elsewhere they aren't really unit tests, they're just
tests. Those tests which rely on external services are being moved
to another directory:


It's used for the scenario tests on different db backend. Will be moved into 
functional test though. https://review.openstack.org/#/c/160827/


Once that split is complete there will be a directory for unit and
directory for functional and it will be possible to run just the
unit tests.

--
Chris Dent tw:@anticdent freenode:cdent
https://tank.peermore.com/tanks/cdent

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] Why ceilometer do notoffer run_tests.sh script?

2015-04-28 Thread Luo Gangyi
Thanks for your reply.


Yes, we can do as you said. But still a bit weird using database in unit tests 
:)


--
Luo gangyiluogan...@chinamobile.com



 




-- Original --
From:  Lu, Lianhao;lianhao...@intel.com;
Date:  Wed, Apr 29, 2015 10:18 AM
To:  OpenStack Development Mailing List (not for usage 
questions)openstack-dev@lists.openstack.org; 

Subject:  Re: [openstack-dev] [Ceilometer] Why ceilometer do notoffer   
run_tests.sh script?



On Apr 29, 2015 09:49, Luo Gangyi wrote:
 Hi guys,
 
 When I try to run unit tests of ceilometer, I find there is no 
 run_tests.sh script offers.
 
 And when I use tox directly, I got a message ' 'Could not find mongod 
 command'.

Please use setup-test-env-mongodb.sh instead. See tox.ini for details.

 So another question is why unit tests needs mongo?

It's used for the scenario tests on different db backend. Will be moved into 
functional test though. https://review.openstack.org/#/c/160827/ 

 Can someone give me some hint?

-Lianhao Lu

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev