{"id":15057130,"url":"https://github.com/inflectra/jasmine-spiratest","last_synced_at":"2026-01-03T03:34:52.574Z","repository":{"id":57279416,"uuid":"169799933","full_name":"Inflectra/jasmine-spiratest","owner":"Inflectra","description":"Reports the results of a jasmine test run into SpiraTest/Team/Plan","archived":false,"fork":false,"pushed_at":"2021-04-26T19:46:10.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-10T06:35:28.221Z","etag":null,"topics":["jasmine","nodejs","tdd"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inflectra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-08T21:14:43.000Z","updated_at":"2021-04-26T19:46:12.000Z","dependencies_parsed_at":"2022-09-13T19:04:00.007Z","dependency_job_id":null,"html_url":"https://github.com/Inflectra/jasmine-spiratest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Fjasmine-spiratest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Fjasmine-spiratest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Fjasmine-spiratest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inflectra%2Fjasmine-spiratest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inflectra","download_url":"https://codeload.github.com/Inflectra/jasmine-spiratest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243761937,"owners_count":20343970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jasmine","nodejs","tdd"],"created_at":"2024-09-24T22:02:45.737Z","updated_at":"2026-01-03T03:34:52.525Z","avatar_url":"https://github.com/Inflectra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spira Integration with JasmineJS Testing Framework\n## Brief Overview\nThis reporter will integrate JasmineJS with Inflectra's ALM suite. It will create a test run in Spira for each test spec executed in Jasmine.\n### Don't have Spira?\nIf you haven't tried out one of our products, you can get a 30 day free trial for our flagship ALM product [SpiraPlan](http://www.inflectra.com/SpiraPlan/) with no credit card needed!\n### Guide Basics\nUnfortunately, this integration will work with SpiraTest/SpiraTeam/SpiraPlan (hereafter refered to as SpiraTest) version 5.0 and above and Jasmine 3.x. If you have an older version, you will need to update to use this reporter.\n\nThis guide assumes a basic familiarity with both SpiraTest and the Jasmine testing framework. \n\n## Setting up the integration\nInstall the integration by running `npm i jasmine-spiratest` in the root directory of your tests. Inside each test spec file, import the SpiraReporter with `var SpiraReporter = require('jasmine-spiratest')` then put the line `jasmine.getEnv().addReporter(new SpiraReporter(spiraCredentials));` where `spiraCredentials` is an object of the format below. You can see a full sample test spec at the bottom of this README.\n```javascript\n{\n    \"url\": \"https://doctor/SpiraPlan\",\n    \"username\": \"fredbloggs\",\n    \"token\": \"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\",\n    \"projectId\": 1,\n    \"releaseId\": 1,\n    \"testSetId\": 1,\n    \"testCases\": {\n        \"default\": 20,\n        \"should multiply correctly\": 21,\n        \"should solve exponents and logarithms correctly\": 16\n    }\n}\n```\nFields are required unless otherwise noted.\n\nField | Description\n--- | --- |\n`url` | The root URL of your SpiraTest instance without a '/' at the end\n`username` | The username you use to sign into SpiraTest\n`token` | Your RSS Token. Foundin your profile page as the `RSS Token` field. You must have RSS Feeds enabled for this to work\n`projectId` | The ID of the project you would like the Test Runs to be filed under\n`releaseId` | **OPTIONAL** - Use if you would like to associate created test runs with a release\n`testSetId` | **OPTIONAL** - Use if you would like to associated created test runs with a test set\n`testCases` | Must contain the `default` field within it and, optionally, specific test cases for a given test spec name\n`default` | Inside the `testCases` field, this is the ID of the default test case mapped to a created test run\n`\u003cspec_name\u003e` | **OPTIONAL** - Use *as many times as you would like* to map a the created test run for a spec to a particular test case in SpiraTest. Note that capitalization, special characters and spaces are ignored both in `testCases` *and* the spec itself\n\nOnce you have added the SpiraReporter to the jasmine environment in each file as described above, you are all set!\n## Using the SpiraTest Reporter\nActually, you don't do anything different! Just run `npm test` or however you ran jasmine before and you should see test runs created in the project you specified!\n\n## Sample Test Spec with SpiraTest Integration\n```JavaScript\ndescribe(\"Test having two specs\", () =\u003e {\n    var SpiraReporter = require('jasmine-spiratest');\n\n    jasmine.getEnv().addReporter(new SpiraReporter({\n        \"url\": \"https://doctor/SpiraPlan\",\n        \"username\": \"fredbloggs\",\n        \"token\": \"{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}\",\n        \"projectId\": 1,\n        \"releaseId\": 1,\n        \"testSetId\": 1,\n        \"testCases\": {\n            \"default\": 20,\n            \"equality works\": 21,\n            \"addition works\": 16\n        }\n    }));\n\n    describe(\"Test basic JavaScript\", () =\u003e {\n        it(\"Equality works...\", () =\u003e {\n            expect(2).toEqual(2);\n        });\n        it(\"Addition works\", () =\u003e {\n            expect(3 + 2).toEqual(5);\n        });\n        it(\"Multiplication works\", () =\u003e {\n            expect(4 * 5).toEqual(20);\n        });\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finflectra%2Fjasmine-spiratest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finflectra%2Fjasmine-spiratest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finflectra%2Fjasmine-spiratest/lists"}