tensorspace icon indicating copy to clipboard operation
tensorspace copied to clipboard

Add Unit test for tensorspace

Open syt123450 opened this issue 7 years ago • 5 comments

Write unit test for utils, add test script under test/unit folder.

syt123450 avatar Sep 21 '18 05:09 syt123450

Headless Chromium for continuous integration testing

https://medium.com/@metalex9/replace-phantomjs-with-headless-chromium-for-javascript-unit-testing-in-karma-59812e6f8ce4

BoTime avatar Jan 10 '19 19:01 BoTime

Sample repo for using karma + headless chromium + jasmine in TravisCI

https://github.com/BoTime/travisci-test

BoTime avatar Jan 13 '19 06:01 BoTime

I Added a basic test case here in testcase branch. @BoTime

syt123450 avatar Jan 16 '19 08:01 syt123450

https://github.com/BoTime/travisci-test https://github.com/BoTime/travisci-test/blob/master/test/e2e.spec.js

A working example to test Tensorspace based on your example. But your example is more like an integration test or e2e test.

To run it

# set environment to Travis
export CI=true

npm install
npm test

# reset to environment to local
unset CI

@syt123450

BoTime avatar Jan 18 '19 02:01 BoTime

https://blog.kentcdodds.com/write-tests-not-too-many-mostly-integration-5e8c7fff591c @syt123450

BoTime avatar Jan 19 '19 07:01 BoTime