{"id":15809564,"url":"https://github.com/daaain/guard-jasmine2junit","last_synced_at":"2025-03-31T23:57:05.108Z","repository":{"id":4904389,"uuid":"6060500","full_name":"daaain/guard-jasmine2JUnit","owner":"daaain","description":"A script that converts output from Guard-Jasmine to the XML format used by JUnit. This allows for running tests on continuos integration servers like Jenkins, complete with test reports!","archived":false,"fork":false,"pushed_at":"2012-10-29T16:49:49.000Z","size":121,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":50,"default_branch":"master","last_synced_at":"2024-10-06T03:24:07.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mranney/node_pcap","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daaain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-03T13:33:53.000Z","updated_at":"2015-06-11T11:20:46.000Z","dependencies_parsed_at":"2022-09-08T21:11:37.216Z","dependency_job_id":null,"html_url":"https://github.com/daaain/guard-jasmine2JUnit","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/daaain%2Fguard-jasmine2JUnit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-jasmine2JUnit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-jasmine2JUnit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daaain%2Fguard-jasmine2JUnit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daaain","download_url":"https://codeload.github.com/daaain/guard-jasmine2JUnit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246558119,"owners_count":20796696,"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":[],"created_at":"2024-10-05T03:24:11.129Z","updated_at":"2025-03-31T23:57:05.092Z","avatar_url":"https://github.com/daaain.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Guard-Jasmine2JUnit\n===================\n\nA script that converts output from Guard-Jasmine to the XML format used by JUnit. This allows for running tests on continuos integration servers like Jenkins, complete with test reports!\n\n## Prerequsites\n\n### Ruby environment + Guard-Jasmine\n\nInstall guide: https://github.com/netzpirat/guard-jasmine#installation\n\nUsage: https://github.com/netzpirat/guard-jasmine#usage\n\nFor Grunt based environments / build chains this seems like a good alternative: https://github.com/jasmine-contrib/grunt-jasmine-runner\n\n### PhantomJS\n\nInstall guide: https://github.com/netzpirat/guard-jasmine#phantomjs\n\nMassive caveat: Jenkins doesn't source the PATH from `~./profile` or `/etc/profile` or anywhere meaningful it seems, so in order to be able to use Homebrew installed PhantomJS you'll have to manually paste the contents of your $PATH (for example `/usr/local/bin:$PATH` + rbenv or rvm related bits if needed) into Jenkins Dashboard \u003e Manage Jenkins \u003e Configure System \u003e Global properties / Environment variables \u003e PATH.\n\n## Command line execution\n\nRunning the test suite and generating the report can be as easy as one line in the Terminal:\n\n`bundle exec guard-jasmine -p 8888 -u http://localhost:8888/ --console=never 2\u003e\u00261 | guard-jasmine2junit.rb`\n\n…unfortunately it's a no go on Jenkins as it can't handle piping so on to:\n\n## Using Ant\n\n```\n\u003ctarget name=\"test\"\u003e\n\t\u003cexec executable=\"bundle\" dir=\".\" output=\"test-temp.txt\"\u003e\n\t\t\u003carg value=\"exec\" /\u003e\n\t\t\u003carg value=\"guard-jasmine\" /\u003e\n\t\t\u003carg value=\"-p\" /\u003e\n\t\t\u003carg value=\"8888\" /\u003e\n\t\t\u003carg value=\"-u\" /\u003e\n\t\t\u003carg value=\"http://localhost:8888/\" /\u003e\n\t\t\u003carg value=\"--console=never\" /\u003e\n\t\u003c/exec\u003e\n\t\u003cexec executable=\"ruby\" failonerror=\"true\"\u003e\n\t\t\u003carg line=\"guard-jasmine2junit.rb test-temp.txt\" /\u003e\n\t\u003c/exec\u003e\n\u003c/target\u003e\n```\n\nYou should only use `failonerror=\"true\"` if you want the build to fail on any error, otherwise use the Jenkins [Performance Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin) to set warning and fail thresholds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaain%2Fguard-jasmine2junit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaaain%2Fguard-jasmine2junit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaaain%2Fguard-jasmine2junit/lists"}