CPSC 542 Software Verification and Validation
Group Project
Professor: David Heckathorn
Team Members:
Ying Luo, [email protected]
Xiaotiam Ma, [email protected]
Yixiang Yan, [email protected]
Open Source project tested: Fakeflix - https://github.com/Th3Wall/Fakeflix
How to run the project:
- In the root directory of Fakeflix project, run the following command to navigate to the testing directory
cd ./src/tests
- Run the following command to install the packages
sh test_initializer.sh
- Steps for running backbox tests:
- In the root directory of Fakeflix project, run the following command to navigate to blackbox testing directory
cd ./src/tests/blackbox_testing
- Run the following command to start the Fakeflix project
sh start_fakeflix.sh
- Each directory in the /blackbox_testing folder is separate project to test one function of the Fakeflix project, load the project in a Java or Python IDE and execute the corresponding blackbox testing for that function. Demos are available for the functional tests.
- In the root directory of Fakeflix project, run the following command to navigate to blackbox testing directory
- Steps for running whitebox tests:
- In the root directory of Fakeflix project, run the following command to navigate to whitebox testing directory
cd ./src/tests/blackbox_testing
- Run the following command to execute the unit tests for Fakeflix project:
sh execute_unit_tests.sh
- Run the following command to execute the unit tests for Fakeflix project and get code coverage report:
sh execute_code_coverage.sh
- In the root directory of Fakeflix project, the code coverage repoort is available at the following path
./coverage/lcov-report/index.html
- In the root directory of Fakeflix project, run the following command to navigate to whitebox testing directory
Tools used for blackbox testing:
- Selenium - Browser automation
Tools used for whitebox testing:
- Mocha - Javascript test framework
- Chai - Javascript assertion library
- Enzyme - Javascript React test Utility
- Sinon - Javascript standalone test doubles(spies, stubs, mocks)
- NYC - Javascript coverage report utility tool