Skip to content

Instantly share code, notes, and snippets.

@thingsinjars
Created October 21, 2013 18:54
Show Gist options
  • Save thingsinjars/7088966 to your computer and use it in GitHub Desktop.
Save thingsinjars/7088966 to your computer and use it in GitHub Desktop.
Output of the cucumber JSON formatter
[
{
"id": "Quick-test",
"name": "Quick test",
"description": "",
"line": 1,
"keyword": "Feature",
"uri": "Hardy/tests/quicktests/test.feature",
"elements": [
{
"name": "Quickly testing new features",
"id": "Quick-test;quickly-testing-new-features",
"line": 3,
"keyword": "Scenario",
"description": "",
"type": "scenario",
"steps": [
{
"name": "I visit \"http://localhost:8000/fixtures/timeout.html\"",
"line": 5,
"keyword": "Given ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "\"p\" should have \"color\" of \"rgba(0, 0, 0, 1)\"",
"line": 6,
"keyword": "Then ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I visit \"http://localhost:8000/fixtures/timeout.html\"",
"line": 8,
"keyword": "Given ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I wait for \"3\" seconds",
"line": 9,
"keyword": "And ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "\"p\" should have \"color\" of \"rgba(255, 0, 0, 1)\"",
"line": 10,
"keyword": "Then ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I visit \"http://localhost:8000/fixtures/timeout.html\"",
"line": 12,
"keyword": "Given ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I wait for \"div\" to be present",
"line": 13,
"keyword": "And ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "\"div\" should have \"background-color\" of \"rgba(0, 255, 0, 1)\"",
"line": 14,
"keyword": "Then ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I visit \"http://localhost:8000/fixtures/timeout.html\"",
"line": 16,
"keyword": "Given ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "\"p\" should look the same as before",
"line": 17,
"keyword": "Then ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "I visit \"http://localhost:8000/fixtures/timeout.html\"",
"line": 19,
"keyword": "Given ",
"result": {
"status": "passed"
},
"match": {}
},
{
"name": "\"p span\" should look the same as before",
"line": 20,
"keyword": "Then ",
"result": {
"status": "passed"
},
"match": {}
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment