{"id":13509222,"url":"https://github.com/dantswain/mix_eunit","last_synced_at":"2025-06-17T00:35:34.598Z","repository":{"id":25366815,"uuid":"28794776","full_name":"dantswain/mix_eunit","owner":"dantswain","description":"A mix task to execute eunit tests.","archived":false,"fork":false,"pushed_at":"2017-02-07T19:20:29.000Z","size":26,"stargazers_count":17,"open_issues_count":4,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T06:16:47.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/dantswain.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":"2015-01-05T02:55:18.000Z","updated_at":"2023-09-01T10:55:04.000Z","dependencies_parsed_at":"2022-08-23T06:31:14.698Z","dependency_job_id":null,"html_url":"https://github.com/dantswain/mix_eunit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dantswain/mix_eunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantswain%2Fmix_eunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantswain%2Fmix_eunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantswain%2Fmix_eunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantswain%2Fmix_eunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantswain","download_url":"https://codeload.github.com/dantswain/mix_eunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantswain%2Fmix_eunit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268632,"owners_count":22983601,"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-08-01T02:01:04.789Z","updated_at":"2025-06-17T00:35:34.580Z","avatar_url":"https://github.com/dantswain.png","language":"Elixir","funding_links":[],"categories":["Testing"],"sub_categories":[],"readme":"MixEunit\n========\n\nA mix task to execute eunit tests.\n\n* Works in umbrella projects.\n* Tests can be in the module or in the test directory.\n* Allows the user to provide a list of patterns for tests to run.\n\nExample\n```\nmix eunit # run all the tests\nmix eunit --verbose \"foo*\" \"*_test\" # verbose run foo*.erl and *_test.erl\n```\n\nInstallation\n------------\n\nAdd to your `mix.exs` deps:\n\n```elixir\ndef deps\n  [#... existing deps,\n   {:mix_eunit, \"~\u003e 0.2\"}]\nend\n```\n\nThen\n\n```\nmix deps.get\nmix deps.compile\nmix eunit\n```\n\nTo make the `eunit` task run in the `:test` environment, add the following\nto the `project` section of you mix file:\n\n```elixir\ndef project\n  [#... existing project settings,\n   preferred_cli_env: [eunit: :test]\n  ]\nend\n```\n\nCommand line options:\n---------------------\n\nA list of patterns to match for test files can be supplied:\n\n```\nmix eunit foo* bar*\n```\n\nThe runner automatically adds \".erl\" to the patterns.\n\nThe following command line switch is also available:\n\n  * `--verbose`, `-v` - run eunit with the :verbose option\n  * `--cover`, `-c` - create a coverage report after running the tests\n  * `--profile`, `-p` - show a list of the 10 slowest tests\n  * `--start` - start applications after compilation\n  * `--no-color` - disable color output\n  * `--force` - force compilation regardless of compilation times\n  * `--no-compile` - do not compile even if files require compilation\n  * `--no-archives-check` - do not check archives\n  * `--no-deps-check` - do not check dependencies\n  * `--no-elixir-version-check` - do not check Elixir version\n\nProject Settings:\n-----------------\n\nThe following `mix.exs` project settings affect the behavior of `mix eunit`.\n\n```elixir\ndef project\n  [\n    # existing project settings\n\n    # run the `eunit` task in the `:test` environment\n    preferred_cli_env: [eunit: :test],\n\n    # set the output directory for `mix eunit --cover` reports\n    #   the default is `./cover` (same as `mix test --cover`)\n    test_coverage: [output: \"_build/#{Mix.env}/cover\"]\n\n    # set switches that affect every invocation of the eunit task\n    eunit: [\n      verbose: false,\n      cover: true,\n      profile: true,\n      start: true,\n      color: false\n    ]\n  ]\nend\n```\n\nCover:\n------\n\nNote that `mix eunit --cover` and `mix test --cover` will not in\ngeneral cover the same source code with tests and therefore will\ntypically generate two independent coverage reports.  There may be\nsome overlap if your eunit and ExUnit tests cover some of the same\ncode.\n\nBy default, `mix eunit --cover` produces coverage reports in HTML\nformat in the same `cover` directory that `mix test --cover` does.\nYou can override the `mix eunit --cover` output directory in your\n`mix.exs` file as described above.\n\nTest search path:\n-----------------\n\nAll \".erl\" files in the src and test directories are considered.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantswain%2Fmix_eunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantswain%2Fmix_eunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantswain%2Fmix_eunit/lists"}