All Projects → vic → mix_under

vic / mix_under

Licence: Apache-2.0 license
Execute mix tasks under Elixir umbrella applications

Programming Languages

elixir
2628 projects

Projects that are alternatives of or similar to mix under

mix systemd
Library of mix tasks to generate a systemd unit file for an Elixir project
Stars: ✭ 48 (+152.63%)
Mutual labels:  mix, mix-tasks
Test-Assignments
List of test assignments. ⚡
Stars: ✭ 85 (+347.37%)
Mutual labels:  task, test
UnitySettings
Runtime debugging menu (like setting on Android) for Unity.
Stars: ✭ 26 (+36.84%)
Mutual labels:  test
python-pytest-harvest
Store data created during your `pytest` tests execution, and retrieve it at the end of the session, e.g. for applicative benchmarking purposes.
Stars: ✭ 44 (+131.58%)
Mutual labels:  test
google-pubsub-emulator
Google PubSub Emulator wrapper to nodejs
Stars: ✭ 28 (+47.37%)
Mutual labels:  test
student-work
基于 Laravel5 开发的学生处任务发布监控系统
Stars: ✭ 22 (+15.79%)
Mutual labels:  task
botium-cli
Botium CLI - The Selenium for Chatbots
Stars: ✭ 27 (+42.11%)
Mutual labels:  test
janus-gateway-live
RTMP edge speed with janus-gateway
Stars: ✭ 38 (+100%)
Mutual labels:  mix
AtoumBundle
This bundle provides a simple integration of atoum into Symfony 2.
Stars: ✭ 44 (+131.58%)
Mutual labels:  test
inside-vm
Detect if code is running inside a virtual machine (x86 and x86-64 only).
Stars: ✭ 32 (+68.42%)
Mutual labels:  test
terraform-aws-ecs-alb-service-task
Terraform module which implements an ECS service which exposes a web service via ALB.
Stars: ✭ 108 (+468.42%)
Mutual labels:  task
best-queue
Queue in runtime based promise
Stars: ✭ 26 (+36.84%)
Mutual labels:  task
chronus
Chronus是360数科技术团队基于阿里开源项目TBSchedule重写的分布式调度。
Stars: ✭ 174 (+815.79%)
Mutual labels:  task
alexa-skill-test-framework
Framework for easy offline black-box testing of Alexa skills.
Stars: ✭ 64 (+236.84%)
Mutual labels:  test
leek
Celery Tasks Monitoring Tool
Stars: ✭ 77 (+305.26%)
Mutual labels:  task
jest-serializer-html-string
A better Jest snapshot serializer for plain html strings
Stars: ✭ 17 (-10.53%)
Mutual labels:  test
taskrunner
🍑 a configurable task runner written in go
Stars: ✭ 28 (+47.37%)
Mutual labels:  task
titef
🌠 A tiny, lightning-fast, zero-dependecies JavaScript test framework 🌠
Stars: ✭ 19 (+0%)
Mutual labels:  test
logunit
A Java library for unit-testing logging.
Stars: ✭ 40 (+110.53%)
Mutual labels:  test
angular-cli-skeleton
angular-cli skeleton to quickly start a new project with advanced features and best practices. All features are described in README.md.
Stars: ✭ 32 (+68.42%)
Mutual labels:  test

mix under

Execute mix tasks under specific umbrella apps, useful for running ecto migrations or tests.

Usage

mix under GLOB [TASK...]

Example

Having an example umbrella app like:

example/
  apps/
    earth/
    heaven/
    hell/

This will run test on a single app

$ mix under heaven test
Heaven
..

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 132550

Or you can use a glob (be sure to quote it to prevent your shell from expanding the glob itself)

$ mix under 'he*' test
Heaven
..

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 941219

.Hell
.

Finished in 0.05 seconds
1 doctest, 1 test, 0 failures

Randomized with seed 862534

How about mix cmd --app heaven mix test?

Well, you can of course use it if you dont mind writing a bit more :), (you can always create an alias in your umbrella to run those long commands for you).

Under any directory

When the glob given to mix under looks like a path (it contains /), the glob is used directly without prepending apps/ to it.

mix under apps/hell test

This means, you can execute mix on any directory, not only below your umbrella.

mix under /other/project test

Under relative task arguments

When the task you are executing expects a path to a file to work with (for example for executing a script or only one test file), mix under will convert given relative paths to absolute.

This comes handy for executing mix from inside your IDE which would probably use paths relative to your project root.

$ mix under earth test apps/earth/test/angel_test.exs
==> (under apps/earth) mix test /home/vic/h/mix_under/example/apps/earth/test/angel_test.exs
Earth.Angel
.

Finished in 0.04 seconds
1 test, 0 failures

Randomized with seed 700004

Installation

$ mix archive.install github vic/mix_under
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].