Skip to content

Commit

Permalink
Smarter test suites display (#1099)
Browse files Browse the repository at this point in the history
* Smarter test suites display

### What's done:
 * Fixed automatic fetch when test suite source is created
 * Added plugins column to test_suite
 * Implemented filtering out empty test suites
 * Added contest filtering (ONLY WarnPlugin)
 * Added plugin label for TestSuitesDisplayer
 * Added useTooltip hook

(#1076)

Co-authored-by: Peter Trifanov <[email protected]>
  • Loading branch information
sanyavertolet and petertrr authored Aug 26, 2022
1 parent 4108655 commit 2129944
Show file tree
Hide file tree
Showing 30 changed files with 910 additions and 252 deletions.
11 changes: 11 additions & 0 deletions db/test-data/test-suite-insert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<column name="language" value="Java"/>
<column name="version" value="123"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -23,6 +24,7 @@
<column name="language" value="null"/>
<column name="version" value="123"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -33,6 +35,7 @@
<column name="language" value="C++"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>
</changeSet>
<changeSet id="test-suite-insert" author="petertrr" context="dev">
Expand All @@ -45,6 +48,7 @@
<column name="tags" value="security,codestyle"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="FixAndWarnPlugin,WarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -56,6 +60,7 @@
<column name="tags" value="security,NPE,hardcode"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="FixPlugin,FixAndWarnPlugin,WarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -67,6 +72,7 @@
<column name="tags" value="NPE,security"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="FixPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -78,6 +84,7 @@
<column name="tags" value="security,NPE,hardcode"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>


Expand All @@ -90,6 +97,7 @@
<column name="tags" value="security,NPE,hardcode"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -101,6 +109,7 @@
<column name="tags" value="security,NPE,hardcode"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin,FixAndWarnPlugin" />
</insert>

<insert dbms="mysql" tableName="test_suite">
Expand All @@ -112,6 +121,7 @@
<column name="tags" value="NPE,security"/>
<column name="version" valueComputed="id"/>
<column name="source_id" value="1" />
<column name="plugins" value="WarnPlugin" />
</insert>
</changeSet>
<changeSet id="add-standard-test-suite" author="nulls">
Expand All @@ -124,6 +134,7 @@
<column name="tags" value="NPE,security"/>
<column name="version" value="123"/>
<column name="source_id" value="2" />
<column name="plugins" value="FixPlugin" />
</insert>
</changeSet>
</databaseChangeLog>
6 changes: 6 additions & 0 deletions db/v-2/tables/test_suite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@
</addColumn>
</changeSet>

<changeSet id="add-plugins" author="sanyavertolet">
<addColumn tableName="test_suite">
<column name="plugins" type="varchar(200)" defaultValue=""/>
</addColumn>
</changeSet>

</databaseChangeLog>
Loading

0 comments on commit 2129944

Please sign in to comment.