Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a GitHub action that analyzes current cypress.io tests and shows a nice overview of them. When a test is added / skipped / removed this analyzer shows it in a comment.
When a PR is created with a test a new label "has tests" is added
Genrally, it will add a comment with full information on current tests:
.only
exclusive testsDesign Decisions
This works as GitHub action on each PR, and compares changes with base branch. Then
cypress/integration
tests are statically analyzed for changes and a comment is added to PR.Read more about it here: https://github.com/testomatio/check-tests
Demo: DavertMik/vue-cli#1 (comment)
Purpose
I hope this improves the visibility of e2e tests and helps to manage and review tests.
Demo
mermaid was already analized in my fork and here is the report I got: DavertMik#1 (comment)
I also copy pasted comment to show it here 👇
🌀 Tests overview by Testomatio
Found 92 cypress tests in 14 files
No new tests added or removed
📑 List all tests
📝 cypress/integration/other/configuration.spec.js
should handle default value false of arrowMarkerAbsolute
should handle default value false of arrowMarkerAbsolute
should handle arrowMarkerAbsolute excplicitly set to false
should handle arrowMarkerAbsolute excplicitly set to "false" as false
should handle arrowMarkerAbsolute set to true
📝 cypress/integration/other/interaction.spec.js
should handle a click on a node with a bound function
should handle a click on a node with a bound function where the node starts with a number
should handle a click on a node with a bound url
should handle a click on a node with a bound url where the node starts with a number
should handle a click on a task with a bound URL clicking on the rect
should handle a click on a task with a bound URL clicking on the text
should handle a click on a task with a bound function
should handle a click on a task with a bound function
should handle a click on a node without a bound function
should handle a click on a node with a bound function where the node starts with a number
should handle a click on a node with a bound url
should handle a click on a node with a bound url where the node starts with a number
should handle a click on a task with a bound URL clicking on the rect
should handle a click on a task with a bound URL clicking on the text
should handle a click on a task with a bound function
should handle a click on a task with a bound function
should handle a click on a node with a bound function
should handle a click on a node with a bound function where the node starts with a number
should handle a click on a node with a bound url
should handle a click on a task with a bound function
should handle a click on a task with a bound function
📝 cypress/integration/other/rerender.spec.js
should be able to render and rerender a graph via API
📝 cypress/integration/other/webpackUsage.spec.js
should render a simple sequence diagrams
📝 cypress/integration/other/xss.spec.js
should handle xss in tags
should handle xss in tags in non-html mode
📝 cypress/integration/rendering/classDiagram.spec.js
1: should render a simple class diagram
2: should render a simple class diagrams with cardinality
should render a simple class diagram with different visibilities
should render multiple class diagrams
4: should render a simple class diagram with comments
5: should render a simple class diagram with abstract method
6: should render a simple class diagram with static method
7: should render a simple class diagram with Generic class
8: should render a simple class diagram with Generic class and relations
📝 cypress/integration/rendering/current.spec.js
should render a state with states in it
📝 cypress/integration/rendering/flowchart.spec.js
1: should render a simple flowchart no htmlLabels
2: should render a simple flowchart with htmlLabels
3: should render a simple flowchart with line breaks
4: should render a simple flowchart with trapezoid and inverse trapezoid vertex options.
4: should style nodes via a class.
5: should render a flowchart full of circles
6: should render a flowchart full of icons
7: should render labels with numbers at the start
8: should render subgraphs
9: should render subgraphs with a title starting with a digit
10: should render styled subgraphs
11: should render a flowchart with long names and class definitions
12: should render color of styled nodes
13: should render hexagons
14: should render a simple flowchart with comments
15: Render Stadium shape
16: Render Stadium shape
17: Chaining of nodes
18: Multiple nodes and chaining in one statement
19: Multiple nodes and chaining in one statement
📝 cypress/integration/rendering/gantt.spec.js
should render a gantt chart
Multiple dependencies syntax
📝 cypress/integration/rendering/info.spec.js
should render a simple info diagrams
📝 cypress/integration/rendering/pie.spec.js
should render a simple pie diagram
should render a simple pie diagram with long labels
should render a simple pie diagram with capital letters for labels
📝 cypress/integration/rendering/sequencediagram.spec.js
should render a simple sequence diagram
should handle different line breaks
should render a single and nested rects
should render rect around and inside loops
should render rect around and inside alts
should render rect around and inside opts
📝 cypress/integration/rendering/stateDiagram.spec.js
should render a simple state diagrams
should render a long descriptions instead of id when available
should render a long descriptions with additional descriptions
should render a single state with short descr
should render a transition descrions with new lines
should render a state with a note
should render a state with on the left side when so specified
should render a state with a note together with another state
should render a note with multiple lines in it
should render a states with descriptions including multi-line descriptions
should render a simple state diagrams
should render a simple state diagrams with labels
should render state descriptions
should render composit states
should render multiple composit states
should render forks in composit states
should render forks and joins
should render conurrency states
should render a state with states in it
Simplest compone state