Skip to content

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