This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added link between suite matrix and test cases
- Loading branch information
1 parent
ea28c3b
commit fb93c27
Showing
3 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
'use strict'; | ||
|
||
var assert = require('chai').assert; | ||
var mainPackage = require('../../index'); | ||
|
||
describe('The main package', function() { | ||
|
||
it('should handle the suite variables', function() { | ||
return mainPackage(['test/integration/suite-variables.md']).then(function(actualResult) { | ||
assert.deepEqual(actualResult, [{ | ||
"name": "SMS suite", | ||
"testcases": [{ | ||
"id": "idone", | ||
"instructions": "Instructions", | ||
"state": "active", | ||
"bug": 1, | ||
"userStory": 1, | ||
"variablesFromSuite": ["var1", "var3"] | ||
}, { | ||
"id": "idtwo", | ||
"instructions": "Instructions 2", | ||
"state": "disabled", | ||
"bug": 2, | ||
"userStory": 2, | ||
"variablesFromSuite": ["var1"] | ||
}] | ||
}]); | ||
}); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SMS suite | ||
|
||
| var1 | var2 | var3 | | ||
:-- |:-:|:-:|:-: | ||
idone | x | | x | ||
idtwo | x | | | ||
|
||
|
||
## idone | ||
`bug 1 ` | ||
`story 1` | ||
|
||
Instructions | ||
|
||
## idtwo | ||
`bug 2` | ||
`story 2` | ||
`disabled` | ||
|
||
Instructions 2 |