Git Product home page Git Product logo

clean_mixer's People

Contributors

igoradamenko avatar kianmeng avatar miros avatar mugimaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

clean_mixer's Issues

Errors when running `make ci`

Running on:

  • Elixir: 1.12.1
  • Erlang: 24.0.2

Results as follows:

make ci
mix clean && mix compile --warnings-as-errors
Compiling 2 files (.erl)
Compiling 53 files (.ex)
Generated clean_mixer app
mix format --check-formatted --dry-run
mix test
...

  1) test it generates plantuml components diagram (Mix.Tasks.CleanMixer.PlantumlTest)
     test/mix/tasks/plantuml_test.exs:18
     Assertion with =~ failed
     code:  assert plant_uml =~ "[arch_map] -[#black]-> [code_map]"
     left:  "@startuml\nskinparam backgroundColor<<dep>> Grey\nskinparam legend {\n FontSize 20\n }\nlegend bottom left\n I = Instability = out / (in + out)\nS = Stability = 1 - I\nA = Abstractness = behaviours / total_modules\nD = Distance = |A+I-1|\nTf = Total files\nPf = Public files\nAin = Abstract in\nAout = Abstract out\nU = Usage = UsedFiles / Pf \n endlegend\nrectangle arch_map  [ =arch_map \n\n In=6 Out=0 S=1.0 (I=0.0) \nA=0.0 D=1.0 (2.0σ) \nTf=5 Pf=2 Ain=0 Aout=0 ]\nrectangle code_map  [ =code_map \n\n In=10 Out=0 S=1.0 (I=0.0) \nA=0.0 D=1.0 (2.0σ) \nTf=6 Pf=5 Ain=0 Aout=0 ]\nrectangle compiler_manifests  [ =compiler_manifests \n\n In=0 Out=7 S=0.0 (I=1.0) \nA=0.0 D=0.0 (0.0σ) \nTf=5 Pf=0 Ain=0 Aout=0 ]\nrectangle metrics  [ =metrics \n\n In=0 Out=9 S=0.0 (I=1.0) \nA=0.0 D=0.0 (0.0σ) \nTf=13 Pf=0 Ain=0 Aout=0 ]\n[compiler_manifests] -[#black]-> [code_map] : U=0.8\n[metrics] -[#black]-> [code_map] : U=0.4\n[metrics] -[#black]-> [arch_map] : U=1.0\n@enduml"
     right: "[arch_map] -[#black]-> [code_map]"
     stacktrace:
       test/mix/tasks/plantuml_test.exs:24: (test)

...

  2) test filters components by source and target deps (Mix.Tasks.CleanMixer.PlantumlTest)
     test/mix/tasks/plantuml_test.exs:39
     Assertion with =~ failed
     code:  assert plantuml =~ ~r"\[arch_map\] .+-> \[code_map\]"
     left:  "@startuml\nskinparam backgroundColor<<dep>> Grey\nskinparam legend {\n FontSize 20\n }\nlegend bottom left\n I = Instability = out / (in + out)\nS = Stability = 1 - I\nA = Abstractness = behaviours / total_modules\nD = Distance = |A+I-1|\nTf = Total files\nPf = Public files\nAin = Abstract in\nAout = Abstract out \n endlegend\n@enduml"
     right: ~r/\[arch_map\] .+-> \[code_map\]/
     stacktrace:
       test/mix/tasks/plantuml_test.exs:46: (test)

......

  3) test filters components by file_source and file_target of deps (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:26
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:32: (test)



  4) test filters components by source and target deps (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:16
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:22: (test)



  5) test lists project components and their dependencies (Mix.Tasks.CleanMixer.ListTest)
     test/mix/tasks/list_test.exs:6
     Assertion with =~ failed
     code:  assert output =~ "arch_map -> code_map"
     left:  "===> compiler_manifests -> code_map\n * lib/clean_mixer/compiler_manifests/manifest.ex\n |---> lib/clean_mixer/code_map/code_module.ex (runtime)\n |---> lib/clean_mixer/code_map/module_reference.ex (runtime,export)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime,export)\n * lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n |---> lib/clean_mixer/code_map.ex (runtime)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime)\n * lib/clean_mixer/compiler_manifests/xref_source.ex\n |---> lib/clean_mixer/code_map/module_reference.ex (runtime)\n |---> lib/clean_mixer/code_map/source_file.ex (runtime)\n\n===> metrics -> code_map\n * lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n |---> lib/clean_mixer/code_map/file_dependency.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n |---> lib/clean_mixer/code_map/file_dependency.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstractness.ex\n |---> lib/clean_mixer/code_map/code_module.ex (runtime)\n===> metrics -> arch_map\n * lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/abstractness.ex\n |---> lib/clean_mixer/arch_map/component.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/fan_in.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/fan_out.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n * lib/clean_mixer/metrics/component_metrics/public_files.ex\n |---> lib/clean_mixer/arch_map.ex (runtime)\n"
     right: "arch_map -> code_map"
     stacktrace:
       test/mix/tasks/list_test.exs:12: (test)



  6) test lists project components and their usages (Mix.Tasks.CleanMixer.ListUsagesTest)
     test/mix/tasks/list_usages_test.exs:6
     Assertion with =~ failed
     code:  assert output =~ "code_map <- [arch_map, compiler_manifests, metrics]"
     left:  "===> arch_map <- [metrics]\n * lib/clean_mixer/arch_map.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/fan_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/fan_out.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/public_files.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n * lib/clean_mixer/arch_map/component.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstractness.ex\n\n===> code_map <- [compiler_manifests, metrics]\n * lib/clean_mixer/code_map.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n * lib/clean_mixer/code_map/code_module.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstractness.ex\n * lib/clean_mixer/code_map/file_dependency.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_in.ex\n   | <--- lib/clean_mixer/metrics/component_metrics/abstract_out.ex\n * lib/clean_mixer/code_map/module_reference.ex\n   | <--- lib/clean_mixer/compiler_manifests/xref_source.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n * lib/clean_mixer/code_map/source_file.ex\n   | <--- lib/clean_mixer/compiler_manifests/xref_source.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest_cartographer.ex\n   | <--- lib/clean_mixer/compiler_manifests/manifest.ex\n"
     right: "code_map <- [arch_map, compiler_manifests, metrics]"
     stacktrace:
       test/mix/tasks/list_usages_test.exs:12: (test)

..........................................

Finished in 24.7 seconds (0.00s async, 24.7s sync)
60 tests, 6 failures

Randomized with seed 831783

Support Elixir version 1.13

Elixir internal compiler changes since Elixir 1.10 break some assumptions made in the clean_mixer codebase.

Would be nice to resolve these so more people could benefit from this project.

PR forthcoming, assuming I can figure out what changed inside Elixir along the way.

`mix deps.get --only docs` in `coveralls.sh`

I've noticed that in coveralls.sh, the script only pull dependencies for :docs environment:

echo "Posting coveralls"
mix deps.get --only docs
mix coveralls.travis

But in mix.exs, there is no deps set for :docs environment:

 defp deps do
   [
     {:optimus, "~> 0.1.11"},
     {:dialyxir, "~> 1.0.0-rc.7", only: [:dev, :test], runtime: false},
     {:excoveralls, "~> 0.11", only: :test},
     {:excoveralls_linter, "~> 0.0.1", only: :test},
     {:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
     {:earmark, "~> 1.4", only: :dev, runtime: false}
   ]
 end

Is this intentional or it's a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.