Skip to content

Resolve "Create Automatic Testing Scripts"

Jon Shahen requested to merge 43-create-automatic-testing-scripts into master

Sample Output:

D:\Work\Masters_Phd\workspace (GradSchool)\ece651-project\src\testing> python3 run_everything.py
PLEASE ENSURE THAT THE WEBSERVER IS RUNNING ON 127.0.0.1:3000
**************************************************
* UNIT TESTS
**************************************************
==================================================
SCRAPER UNIT TESTS
..[Thread 1] An Error occurred while trying to search for Macbeth 'bool' object has no attribute 'ChromeOptions'
F..d:\Work\Masters_Phd\workspace (GradSchool)\ece651-project\src\scraper\test_webdriver.py:14: DeprecationWarning: use options instead of chrome_options
  driver = webdriver.Chrome(chrome_options=options)

DevTools listening on ws://127.0.0.1:19862/devtools/browser/1413367f-33c0-4369-ab71-8b04159237fa
.
======================================================================
FAIL: test_search_1984 (test_amazon_requests.TestAmazonRequests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\Work\Masters_Phd\workspace (GradSchool)\ece651-project\src\scraper\test_amazon_requests.py", line 40, in test_search_1984
    self.assertIsNotNone(book_url)
AssertionError: unexpectedly None

----------------------------------------------------------------------
Ran 6 tests in 9.637s

FAILED (failures=1)
==================================================

==================================================
ML UNIT TESTS

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
==================================================

==================================================
WEB UNIT TESTS

> web@0.0.0 test d:\Work\Masters_Phd\workspace (GradSchool)\ece651-project\src\web
> mocha



  Array
    #indexOf()
      √ should return -1 when the value is not present


  1 passing (8ms)

==================================================



**************************************************
* UNIT TESTS
**************************************************
==================================================
WEB SYSTEM TESTS

DevTools listening on ws://127.0.0.1:19893/devtools/browser/30f8b393-edcd-41b2-8c61-4f7d3086cb0d
Test Failed
.
DevTools listening on ws://127.0.0.1:19923/devtools/browser/d9862341-70b4-45a3-baad-406c131f6618
Test Passed
.
----------------------------------------------------------------------
Ran 2 tests in 45.619s

OK
==================================================

Closes #43 (closed)

Merge request reports

Loading