Skip to content

Umbrella app's test directories were generated with type src instead of test #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brunomalvestuto
Copy link

If you run mix ex_projections in an umbrella app with two apps for instance, it will generate an output similar to the following:

{
  "apps/first/lib/*.ex": {
    "alternate": "apps/first/test/{}_test.exs",
    "type": "src"
  },
  "apps/first/test/*_test.exs": {
    "alternate": "apps/first/lib/{}.ex",
    "type": "src"
  },
  "apps/second/lib/*.ex": {
    "alternate": "apps/second/test/{}_test.exs",
    "type": "src"
  },
  "apps/second/test/*_test.exs": {
    "alternate": "apps/second/lib/{}.ex",
    "type": "src"
  }
}

The expected output would be:

{
  "apps/first/lib/*.ex": {
    "alternate": "apps/first/test/{}_test.exs",
    "type": "src"
  },
  "apps/first/test/*_test.exs": {
    "alternate": "apps/first/lib/{}.ex",
    "type": "test"
  },
  "apps/second/lib/*.ex": {
    "alternate": "apps/second/test/{}_test.exs",
    "type": "src"
  },
  "apps/second/test/*_test.exs": {
    "alternate": "apps/second/lib/{}.ex",
    "type": "test"
  }
}

@brunomalvestuto brunomalvestuto changed the title Umbrella app's test directory were generated with type src instead of test Umbrella app's test directories were generated with type src instead of test Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant