From d0c36efb3590796499db0ede5def2638311ecaf3 Mon Sep 17 00:00:00 2001 From: SuenagaRyota Date: Wed, 4 Oct 2017 11:09:39 +0900 Subject: [PATCH] Created Tests (markdown) --- Tests.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Tests.md diff --git a/Tests.md b/Tests.md new file mode 100644 index 0000000..c5b5ef0 --- /dev/null +++ b/Tests.md @@ -0,0 +1,18 @@ +There are unit tests in `tests` and eslint. They're run each time you push on [CircleCI](https://travis-ci.org/BoostIO/Boostnote). + +# Run test +Execute them. + +```sh +$ yarn run test +$ yarn run lin +``` + +# Unit tests +There are 2 types of test in Boostnote, one is unit tests for `dataApi`, another one is unit tests for other modules in `browser/lib/`. + +# Why no e2e test? +Actually, it was. Spectron was used for e2e test tool. The reason why it was removed is that because it has problems below: +1. Spectron doesn't support button click in a dialog box so the files for tests remain even after the tests finish +2. It's hard to specify input field due to CodeMirror complication +3. It doesn't run well on CI due to permission \ No newline at end of file