forked from open-ideas/IDEAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Running Unit tests
Damien Picard edited this page Jan 15, 2015
·
13 revisions
This topic explains how to run the IDEAS unit tests. The instructions work on Linux and on Windows.
First you need to download BuildingsPy from https://github.com/lbl-srg/BuildingsPy:
git clone [email protected]:lbl-srg/BuildingsPy.git
This package needs to be built and installed. Open terminal in the just downloaded BuildingsPy directory and execute in Linux:
python setup.py build
sudo python setup.py install
In Windows, make sure you have the administrator rights and execute:
python setup.py build
python setup.py install
BuildingsPy is now installed.
Open the file IDEAS/IDEAS/RunUnitTests.py
and make sure you use the desired number of processors by adapting tester.setNumberOfThreads(4)
. By default the file uses 4 processors. The unit tests can be run by opening terminal in the IDEAS root directory and executing the following commands:
cd IDEAS/IDEAS
python RunUnitTests.py