Skip to content

Commit

Permalink
test: verify engines works as expected
Browse files Browse the repository at this point in the history
* test: explicitly set element templates per describe

This ensures the tests clearly layout expectations.
  • Loading branch information
nikku authored Dec 6, 2024
1 parent 71b86f9 commit 104607a
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[
{
"id": "example.engines.test.multiple",
"name": "<engines> Test - Multiple",
"description": "does not match <desktopModeler>, if explicit <desktopModeler>=1> is provided",
"version": 2,
"engines": {
"camunda": "^8.6",
"webModeler": "^4.1",
"desktopModeler": "^0"
},
"appliesTo": [
"bpmn:Task"
],
"properties": []
},
{
"id": "example.engines.test.multiple",
"name": "<engines> Test - Multiple",
"description": "matches when compatible <camunda> and/or <webModeler> run-time is indicated, or properties are not provided",
"version": 1,
"engines": {
"camunda": "^8.6",
"webModeler": "^4.1"
},
"appliesTo": [
"bpmn:Task"
],
"properties": []
},

{
"id": "example.engines.test.basic",
"name": "<engines> Test - Basic",
"description": "matches when compatible <camunda> run-time is indicated, or property is not provided",
"version": 2,
"engines": {
"camunda": "^8.6"
},
"appliesTo": [
"bpmn:Task"
],
"properties": []
},
{
"id": "example.engines.test.basic",
"name": "<engines> Test - Basic",
"description": "matches when compatible <camunda> run-time is indicated, or property is not provided",
"version": 1,
"engines": {
"camunda": "^8.5"
},
"appliesTo": [
"bpmn:Task"
],
"properties": []
},
{
"id": "example.engines.test.basic",
"name": "<engines> Test - Basic",
"description": "always matches",
"version": 0,
"appliesTo": [
"bpmn:Task"
],
"properties": []
},

{
"id": "example.engines.test.broken",
"name": "<engines> Test - broken Semver range",
"description": "specifies broken semver range",
"version": 0,
"engines": {
"camunda": "-foobar"
},
"appliesTo": [
"bpmn:Task"
],
"properties": []
}
]
Loading

0 comments on commit 104607a

Please sign in to comment.