{"id":28194307,"url":"https://github.com/monkey-projects/plugin-junit","last_synced_at":"2026-02-27T10:45:12.902Z","repository":{"id":236974272,"uuid":"793542844","full_name":"monkey-projects/plugin-junit","owner":"monkey-projects","description":"MonkeyCI extension to handle junit results","archived":false,"fork":false,"pushed_at":"2025-09-11T06:58:35.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-18T17:36:20.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/monkey-projects.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-29T12:23:03.000Z","updated_at":"2025-09-11T06:58:39.000Z","dependencies_parsed_at":"2024-04-29T13:40:46.690Z","dependency_job_id":"ef7701e1-009c-42cb-bab5-1ff0eab4fc13","html_url":"https://github.com/monkey-projects/plugin-junit","commit_stats":null,"previous_names":["monkey-projects/plugin-junit"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/monkey-projects/plugin-junit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-junit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-junit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-junit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-junit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkey-projects","download_url":"https://codeload.github.com/monkey-projects/plugin-junit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkey-projects%2Fplugin-junit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29892055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-05-16T13:11:52.147Z","updated_at":"2026-02-27T10:45:12.894Z","avatar_url":"https://github.com/monkey-projects.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MonkeyCI JUnit Plugin\n\nThis is a Clojure library that provides plugin functionality for [MonkeyCI](https://monkeyci.com)\nto allow build jobs to extract information from JUnit test results so they can be added to the\nbuild results.  The plugin reads a `junit.xml` compatible file from a configured artifact and\nparses the information.\n\n## Usage\n\n[![Clojars Project](https://img.shields.io/clojars/v/com.monkeyci/plugin-junit.svg)](https://clojars.org/com.monkeyci/plugin-junit)\n\nFirst include the library in your build `deps.edn`:\n\n```clojure\n{:deps {com.monkeyci/plugin-junit {:mvn/version \"VERSION\"}}}\n```\n\nThen make sure you `require` it in your build script.  It registers itself on a tag\nnamed `junit`, which should contain the necessary configuration.  For example:\n\n```clojure\n(ns build\n  (:require [monkey.ci.ext.junit :as j]\n            [monkey.ci.api :as m]))\n\n;; Some build job\n(def test-job\n  (-\u003e (m/container-job \"run-tests\")\n      (m/image \"docker.io/clojure\")\n      (m/script [\"lein test-junit\"])\n      (m/save-artifacts [(m/artifact \"test-results\" \"junit.xml\")])\n      ;; Configuration for the plugin\n      ;; Alternatively, you can use {:artifact-id \"test-results\" :path \"junit.xml\"}\n      (j/junit (m/artifact \"test-results\" \"junit.xml\"))))\n\n;; Jobs in your build script\n[test-job]\n```\n\nThe plugin will read the artifact with id `test-results` and extract the `junit.xml` file\nfrom it, parsing it as xml.  The information is added to the build job results under the\nkey `monkey.ci/tests`.\n\n### Multiple Files\n\nMany test tools, such as [Apache Maven](https://maven.apache.org/) will generate multiple\ntest result files in a directory.  It's possible to specify a `pattern` instead of a `path`\nfor these situations.  The extension will then look up all files matching the pattern in the\narchive, and consolidate all extracted test results.\n\n```clojure\n;; Some build job\n(def test-job\n  (-\u003e (m/container-job \"run-tests\")\n      (m/image \"docker.io/maven:latest\")\n      (m/script [\"mvn verify\"])\n      (m/save-artifacts [(m/artifact \"test-results\" \"target/surefire-reports\")])\n      ;; Configuration for the plugin\n      (j/junit {:artifact-id \"test-results\"\n                ;; Use regex pattern instead of path\n                :pattern #\"surefire-reports/.*.xml\"})))\n```\n\n## License\n\nCopyright (c) 2024-2025 by [Monkey Projects](https://www.monkey-projects.be).\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Fplugin-junit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkey-projects%2Fplugin-junit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkey-projects%2Fplugin-junit/lists"}