You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2019/09/11 08:49:24 UTC

[incubator-echarts] branch test-autorun updated (bf3a0ae -> d561931)

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a change to branch test-autorun
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git.


    from bf3a0ae  test: add version selection in visual regression testing tool
     new 61e5a01  test: case insensitive search
     new d561931  test: add more run options.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 test/runTest/client/client.js  | 47 ++++++++++++++++++++++++++++--------------
 test/runTest/client/index.html |  7 ++++---
 2 files changed, 36 insertions(+), 18 deletions(-)


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


[incubator-echarts] 01/02: test: case insensitive search

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch test-autorun
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 61e5a01b189f74cc1a4295c3bc8a6f199fbc3469
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 11 16:35:40 2019 +0800

    test: case insensitive search
---
 test/runTest/client/client.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/runTest/client/client.js b/test/runTest/client/client.js
index f910178..2cd0563 100644
--- a/test/runTest/client/client.js
+++ b/test/runTest/client/client.js
@@ -103,8 +103,9 @@ const app = new Vue({
                 return this.fullTests.slice().sort(sortFunc);
             }
 
+            let searchString = this.searchString.toLowerCase();
             return this.fullTests.filter(test => {
-                return test.name.match(this.searchString);
+                return test.name.toLowerCase().match(searchString);
             }).sort(sortFunc);
         },
 


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


[incubator-echarts] 02/02: test: add more run options.

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch test-autorun
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit d561931f605aa0f8e762211175ff3683cc88cb43
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 11 16:49:09 2019 +0800

    test: add more run options.
---
 test/runTest/client/client.js  | 44 ++++++++++++++++++++++++++++--------------
 test/runTest/client/index.html |  7 ++++---
 2 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/test/runTest/client/client.js b/test/runTest/client/client.js
index 2cd0563..7f644ed 100644
--- a/test/runTest/client/client.js
+++ b/test/runTest/client/client.js
@@ -109,6 +109,22 @@ const app = new Vue({
             }).sort(sortFunc);
         },
 
+        selectedTests() {
+            return this.fullTests.filter(test => {
+                return test.selected;
+            });
+        },
+        unfinishedTests() {
+            return this.fullTests.filter(test => {
+                return test.status !== 'finished';
+            });
+        },
+        failedTests() {
+            return this.fullTests.filter(test => {
+                return test.status === 'finished' && test.summary !== 'success';
+            });
+        },
+
         currentTest() {
             let currentTest = this.fullTests.find(item => item.name === this.currentTestName);
             if (!currentTest) {
@@ -171,20 +187,20 @@ const app = new Vue({
             runTests([testName]);
         },
         run(runTarget) {
-            const tests = this.fullTests.filter(test => {
-                if (runTarget === 'selected') {
-                    return test.selected;
-                }
-                else if (runTarget === 'unfinished') {
-                    return test.status !== 'finished';
-                }
-                else {  // Run all
-                    return true;
-                }
-            }).map(test => {
-                return test.name;
-            });
-            runTests(tests);
+            let tests;
+            if (runTarget === 'selected') {
+                tests = this.selectedTests;
+            }
+            else if (runTarget === 'unfinished') {
+                tests = this.unfinishedTests;
+            }
+            else if (runTarget === 'failed') {
+                tests = this.failedTests;
+            }
+            else {
+                tests = this.fullTests;
+            }
+            runTests(tests.map(test => test.name));
         },
         stopTests() {
             this.running = false;
diff --git a/test/runTest/client/index.html b/test/runTest/client/index.html
index 64c2eba..8706c33 100644
--- a/test/runTest/client/index.html
+++ b/test/runTest/client/index.html
@@ -46,10 +46,11 @@ under the License.
                             @click="run('selected')"
                             @command="run"
                         >
-                            <i class="el-icon-caret-right"></i> Run selected
+                            <i class="el-icon-caret-right"></i> Run selected ({{selectedTests.length}})
                             <el-dropdown-menu slot="dropdown" >
-                                <el-dropdown-item command="unfinished">Run unfinished</el-dropdown-item>
-                                <el-dropdown-item command="all">Run all</el-dropdown-item>
+                                <el-dropdown-item command="unfinished">Run unfinished ({{unfinishedTests.length}})</el-dropdown-item>
+                                <el-dropdown-item command="failed">Run failed ({{failedTests.length}})</el-dropdown-item>
+                                <el-dropdown-item command="all">Run all ({{fullTests.length}})</el-dropdown-item>
                             </el-dropdown-menu>
                         </el-dropdown>
 


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