SAFE-BookStore
SAFE-BookStore copied to clipboard
Build fails on client-side unit tests
Latest commit fails on build.cmd with errors during the client-side test phase:
Starting Target: RunClientTests (==> RenameDrivers)
[10:58:01 DBG] Initialising BufferManager with 827392
[10:58:01 INF] Smooth! Suave listener started in 58.436 with binding 0.0.0.0:8085
[INFO - 2017-09-21T08:58:14.675Z] GhostDriver - Main - running on port 50619
[INFO - 2017-09-21T08:58:14.841Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1","webSecurityEnabled":true}
[INFO - 2017-09-21T08:58:14.870Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.customHeaders: - {}
[INFO - 2017-09-21T08:58:14.880Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"2.1.1","driverName":"ghostdriver","driverVersion":"1.2.0","platform":"windows-10-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"proxyType":"direct"}}
[INFO - 2017-09-21T08:58:14.937Z] SessionManagerReqHand - _postNewSessionCommand - New Session Created: 00d08030-9eab-11e7-8a06-936a8156ab1b
EXPECTO version
[10:58:15 INF] EXPECTO? Running tests... <Expecto>
[10:58:15 DBG] 127.0.0.1 connected. Now has 1 connected
[10:58:16 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:16 Z] "GET / HTTP/1.1" 200 0
[10:58:16 DBG] 127.0.0.1 connected. Now has 2 connected
[10:58:16 DBG] 127.0.0.1 connected. Now has 3 connected
[10:58:16 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:16 Z] "GET /js/fetch.js HTTP/1.1" 200 0
[10:58:16 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:16 Z] "GET /css/site.css HTTP/1.1" 200 0
[10:58:16 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:16 Z] "GET /js/shim.min.js HTTP/1.1" 200 0
[10:58:16 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:16 Z] "GET /public/bundle.js HTTP/1.1" 200 0
[ERROR - 2017-09-21T08:58:17.172Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.onError - msg: Error parsing url
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-09-21T08:58:17.184Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.onError - stack:
r (http://localhost:8085/public/bundle.js:20)
phantomjs://platform/console++.js:263 in error
[10:58:17 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:17 Z] "GET /images/safe_logo.png HTTP/1.1" 404 15
[10:58:17 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:17 Z] "GET / HTTP/1.1" 200 0
[10:58:17 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:17 Z] "GET /js/fetch.js HTTP/1.1" 200 0
[10:58:17 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:17 Z] "GET /js/shim.min.js HTTP/1.1" 200 0
[ERROR - 2017-09-21T08:58:17.383Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.onError - msg: Error parsing url
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-09-21T08:58:17.393Z] Session [00d08030-9eab-11e7-8a06-936a8156ab1b] - page.onError - stack:
r (http://localhost:8085/public/bundle.js:20)
phantomjs://platform/console++.js:263 in error
[10:58:17 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:17 Z] "GET /images/safe_logo.png HTTP/1.1" 404 15
[ERROR - 2017-09-21T08:58:22.615Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1505984302567
phantomjs://platform/console++.js:263 in error
[ERROR - 2017-09-21T08:58:23.724Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1505984303677
phantomjs://platform/console++.js:263 in error
[10:58:24 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:24 Z] "POST /api/users/login HTTP/1.1" 200 259
[10:58:24 INF] 127.0.0.1 7012 - [21/Sep/2017:08:58:24 Z] "GET /api/wishlist/ HTTP/1.1" 200 281
[ERROR - 2017-09-21T08:58:24.912Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1505984304864
phantomjs://platform/console++.js:263 in error
[10:58:26 INF] EXPECTO! 2 tests run in 00:00:10.5437122 - 2 passed, 0 ignored, 0 failed, 0 errored. Success! <Expecto>
[INFO - 2017-09-21T08:58:26.112Z] ShutdownReqHand - _h[a10:58:26n dDBGl] eShutting down transport
- A[b10:58:26o uDBGt] tShutting down transport
o shut[do10:58:26w nDBG
] Disconnected 127.0.0.1. 1 connected.
[10:58:26 DBG] Disconnected 127.0.0.1. 2 connected.
[10:58:26 DBG] Shutting down transport
[10:58:26 DBG] Disconnected 127.0.0.1. 0 connected.
Finished Target: RunClientTests
Starting Target: All (==> RunClientTests)
Finished Target: All
Starting FinalTarget: KillProcess
Searching for processes with name = dotnet
Trying to kill process dotnet (Id = 7012)
Searching for processes with name = dotnet.exe
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
Clean 00:00:00.0611000
InstallDotNetCore 00:00:00.1042592
InstallClient 00:00:01.5513451
BuildServer 00:00:02.9000332
BuildClient 00:00:24.2778907
BuildServerTests 00:00:02.6465896
RunServerTests 00:00:05.0190815
BuildClientTests 00:00:01.9641224
RenameDrivers 00:00:00.0004893
RunClientTests 00:00:28.2970818
All 00:00:00.0000401
KillProcess 00:00:00.0197253
Total: 00:01:06.9441320
---------------------------------------------------------------------
Status: Ok
---------------------------------------------------------------------
System.Exception: yarn.cmd not found
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at <StartupCode$FSI_0005>.$FSI_0005_Build$fsx.main@() in C:\Users\Isaac\Source\Repos\fable-suave-scaffold\build.fsx:line 76
Stopped due to error
The final error is misleading because Yarn is already installed and working earlier in the build process. Running build run works without errors.