{"id":37029822,"url":"https://github.com/dakusui/actionunit","last_synced_at":"2026-01-14T03:36:07.479Z","repository":{"id":51352228,"uuid":"64578946","full_name":"dakusui/actionunit","owner":"dakusui","description":"Action programming library for testing","archived":false,"fork":false,"pushed_at":"2024-12-08T02:20:52.000Z","size":2497,"stargazers_count":2,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"6.1.x","last_synced_at":"2025-07-22T12:22:59.206Z","etag":null,"topics":["functional","java","testing"],"latest_commit_sha":null,"homepage":"https://dakusui.github.io/actionunit/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dakusui.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}},"created_at":"2016-07-31T05:43:55.000Z","updated_at":"2024-12-08T02:15:46.000Z","dependencies_parsed_at":"2024-06-10T03:21:42.932Z","dependency_job_id":"da0ae8dd-4704-4199-be7b-63b1ad2af5d1","html_url":"https://github.com/dakusui/actionunit","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/dakusui/actionunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakusui%2Factionunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakusui%2Factionunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakusui%2Factionunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakusui%2Factionunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dakusui","download_url":"https://codeload.github.com/dakusui/actionunit/tar.gz/refs/heads/6.1.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dakusui%2Factionunit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["functional","java","testing"],"created_at":"2026-01-14T03:36:05.916Z","updated_at":"2026-01-14T03:36:07.173Z","avatar_url":"https://github.com/dakusui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActionUnit\nAction based JUnit[[0]] test runner library\n\n[![Build Status](https://travis-ci.org/dakusui/actionunit.svg?branch=master)](https://travis-ci.org/dakusui/actionunit)\n\n# Installation\nThe latest version of ActionUnit requires Java SE8 or later.\nFollowing is a maven coordinate for ActionUnit.\n\n```xml\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.dakusui\u003c/groupId\u003e\n      \u003cartifactId\u003eactionunit\u003c/artifactId\u003e\n      \u003cversion\u003e[5.2.0,)\u003c/version\u003e\n      \u003cscope\u003etest\u003c/scope\u003e\n    \u003c/dependency\u003e\n```\n\nAlso it requires JUnit 4.12 or later. Please make sure you are using it in your dependencies.\n\n# For what is it useful?\nSuppose that you want to define your tests in your own DSTL, domain specific testing \nlanguage, and want to implement a test runner which performs the test cases defined \nin it.\n\nHow to define test cases, how to parse them, and how to structure and perform them\nare all independent concerns.\n\n```ActionUnit``` takes care of the last two parts among them \"how to structure and\nperform them\".\n\n# Usage\n\nFollowing is an example of actionunit.\n\n```java\n\nimport static com.github.dakusui.actionunit.core.ActionSupport.*;\n\npublic class HelloActionUnit {\n  @Test\n  public void helloActionUnit() {\n    List\u003cString\u003e out = new LinkedList\u003c\u003e();\n    Action action = forEach(\n        \"i\",\n        () -\u003e Stream.of(\"Hello\", \"world\", \"!\")\n    ).perform(i -\u003e\n        sequential(\n            simple(\n                \"print {s}\",\n                (c) -\u003e System.out.println(\"\u003c\" + i.resolve(c) + \"\u003e\")\n            ),\n            simple(\n                \"add {s} to 'out'\",\n                (c) -\u003e out.add(\"'\" + c.valueOf(\"i\") + \"'\")\n            )));\n\n    ReportingActionPerformer.create(Writer.Std.OUT).performAndReport(action);\n  }\n}\n\n```\n\nThis will print out something like\n\n```\n\n  \u003cworld\u003e\n  \u003cHello\u003e\n  \u003c!\u003e\n```\nto stdout, while following is written to stderr\n\n```\n\n[o]helloActionUnit\n  [o]ForEach (CONCURRENTLY) [Hello, world, !]\n    [ooo]Sequential (1 actions)\n      [ooo]print {i}\n```\n\nThis shows how actions are structured and whether each of them finished normally \nor not. ```o``` inside brackets represent how many times they are executed and \nfinished normally. As you see, an action ```print {i}``` was executed three times \nsuccessfully (```[ooo]```). If one a run of an action fails it will be shown as\n```E``` or ```F```(the latter is for ```AssertionError```).\n\n\nMore examples are found here[[1]].\nAnd API reference is found here [[2]].\n\n# References\n* [0] \"JUnit\"\n* [1] \"ActionUnit examples\"\n* [2] \"ActionUnit API reference\"\n\n[0]: http://junit.org/junit4/\n[1]: https://github.com/dakusui/actionunit/tree/master/src/test/java/com/github/dakusui/actionunit/examples\n[2]: https://dakusui.github.io/actionunit/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakusui%2Factionunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdakusui%2Factionunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdakusui%2Factionunit/lists"}