You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/25 17:05:58 UTC

[GitHub] [incubator-echarts] yufeng04 opened a new pull request #11711: Test framework changed to jest and cases run in node environment

yufeng04 opened a new pull request #11711: Test framework changed to jest and cases run in node environment
URL: https://github.com/apache/incubator-echarts/pull/11711
 
 
   I made some changes to the unit tests:
   * Test framework changed to jest. Jest works seamlessly with projects using  Node.js and has an intelligent execution of tests and snapshots that can happen parallelly.
   * Cases run in node environment. In order to access the CI of GitHub, I changed the running environment of unit test to node.
   * Delete the UI case. Because these cases are more suitable for visual testing.
   * I commented out the wrong test case
   1. `util/number › quantity › large number`: Expected: 1e+100 Received: 1.0000000000000002e+100
   2. `util/number › nice › extreme`: Expected: 0 Received: 1
   3. `test/ut/spec/api/containPixel.test.js`: The error message is 'Assertion failed: (angle_max >= angle_min), function _cairo_arc_in_direction, file cairo-arc.c, line 189.'
   4. `test/ut/spec/component/graphic/setOption.test.js`: The error message is 'FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.', maybe I used the 'Canvas' library
   5. `test/ut/spec/model/Component.test.js`: Because nodes cache modules required, the results are affected by other cases

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org