failed test cases in regression test
26 passing (695ms)
14 failing
1) Analyzer invoking should invoke the external analyzer and return given analysis info:
Error: Command failed: ./test//Simple_analyzer_UT/mockChecker undefined
'.' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (child_process.js:294:12)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
2) Config manager should return project config merged from system config:
3) FppModelManager Parsing should load the model when the path contains blank:
Error: Command failed: E:\JPL\fprime-editor\test\Ref2\path\ with\ blank\fppcompiler undefined
'E:\JPL\fprime-editor\test\Ref2\path\' is not recognized as an internal or external command,
operable program or batch file.
at ChildProcess.exithandler (child_process.js:294:12)
at maybeClose (internal/child_process.js:970:16)
at Socket.stream.socket.on (internal/child_process.js:389:11)
at Pipe._handle.close (net.js:597:12)
4) FppModelManager Query should query the instances and connections in given topology:
TypeError: Cannot read property 'existsSync' of undefined
at components.forEach.e (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at Array.forEach (<anonymous>)
at FPPModelManager.generateText (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at FPPModelManager.<anonymous> (src\fprime\FPPModelManagement\FPPModelManager.ts:5:1)
at Generator.next (<anonymous>)
at fulfilled (src\fprime\FPPModelManagement\FPPModelManager.ts:1:74907)
at process._tickCallback (internal/process/next_tick.js:68:7)
5) FppModelManager Query should query the related instances and connections in given instance:
TypeError: Cannot read property 'existsSync' of undefined
at components.forEach.e (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at Array.forEach (<anonymous>)
at FPPModelManager.generateText (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at FPPModelManager.<anonymous> (src\fprime\FPPModelManagement\FPPModelManager.ts:5:1)
at Generator.next (<anonymous>)
at fulfilled (src\fprime\FPPModelManagement\FPPModelManager.ts:1:74907)
at process._tickCallback (internal/process/next_tick.js:68:7)
6) FppModelManager Query should query the related component and ports in given instance:
TypeError: Cannot read property 'existsSync' of undefined
at components.forEach.e (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at Array.forEach (<anonymous>)
at FPPModelManager.generateText (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at FPPModelManager.<anonymous> (src\fprime\FPPModelManagement\FPPModelManager.ts:5:1)
at Generator.next (<anonymous>)
at fulfilled (src\fprime\FPPModelManagement\FPPModelManager.ts:1:74907)
at process._tickCallback (internal/process/next_tick.js:68:7)
7) FppModelManager Query should query out all the models in the given folder:
TypeError: Cannot read property 'existsSync' of undefined
at components.forEach.e (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at Array.forEach (<anonymous>)
at FPPModelManager.generateText (src\fprime\FPPModelManagement\FPPModelManager.ts:203:54)
at FPPModelManager.<anonymous> (src\fprime\FPPModelManagement\FPPModelManager.ts:5:1)
at Generator.next (<anonymous>)
at fulfilled (src\fprime\FPPModelManagement\FPPModelManager.ts:1:74907)
at process._tickCallback (internal/process/next_tick.js:68:7)
10) ViewManager build should print compile message:
AssertionError: expected '\n\r\nE:\\JPL\\fprime-editor>echo "system default compiler..." \r\n"system default compiler..."\r\n\nCovert representation xml...\nGenerate view list...\nTypeError: Cannot read property \'existsSync\' of undefined\n' to equal '\nsystem default compiler...\n\nCovert representation xml...\nGenerate view list...\n'
+ expected - actual
-
-E:\JPL\fprime-editor>echo "system default compiler..."
-"system default compiler..."
+system default compiler...
Covert representation xml...
Generate view list...
-TypeError: Cannot read property 'existsSync' of undefined
at Object.<anonymous> (test\fprime\specs\ViewManager.spec.ts:95:50)
at Generator.next (<anonymous>)
at fulfilled (test\fprime\specs\ViewManager.spec.ts:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
11) ViewManager render should return needLayout = true when a view is first rendered:
TypeError: Cannot read property 'needLayout' of null
at Object.<anonymous> (test\fprime\specs\ViewManager.spec.ts:129:41)
at Generator.next (<anonymous>)
at fulfilled (test\fprime\specs\ViewManager.spec.ts:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
12) ViewManager updateViewDescriptor should update the cytoscape json:
AssertionError: expected null to deeply equal { Object (needLayout, elesHasPosition, ...) }
at Object.<anonymous> (test\fprime\specs\ViewManager.spec.ts:155:50)
at Generator.next (<anonymous>)
at fulfilled (test\fprime\specs\ViewManager.spec.ts:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
13) ViewManager getSimpleGraph should return graph for mock REFLogger:
AssertionError: expected false to equal true
+ expected - actual
-false
+true
at Object.<anonymous> (test\fprime\specs\ViewManager.spec.ts:218:33)
at Generator.next (<anonymous>)
at fulfilled (test\fprime\specs\ViewManager.spec.ts:4:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
To Reproduce
run command nyc mocha --opts ./test/fprime/mocha.opts
failed test cases in regression test 26 passing (695ms) 14 failing
1) Analyzer invoking should invoke the external analyzer and return given analysis info:
2) Config manager should return project config merged from system config:
3) FppModelManager Parsing should load the model when the path contains blank:
4) FppModelManager Query should query the instances and connections in given topology:
5) FppModelManager Query should query the related instances and connections in given instance:
6) FppModelManager Query should query the related component and ports in given instance:
7) FppModelManager Query should query out all the models in the given folder:
8) ViewDescriptor should generate cytoscape json:
9) ViewDescriptor should return needLayout = true if missing x/y:
10) ViewManager build should print compile message:
11) ViewManager render should return needLayout = true when a view is first rendered:
12) ViewManager updateViewDescriptor should update the cytoscape json:
13) ViewManager getSimpleGraph should return graph for mock REFLogger:
14) ViewManager saveStyle should save style:
To Reproduce run command
nyc mocha --opts ./test/fprime/mocha.opts