Commit Graph
8343 Commits
Author SHA1 Message Date
João Britto ab5e46ba62 Disable overriding the async tag (#4649)
The `async` config is meant to be set only by the time `ExUnit.Case`
is used. With these changes we make sure a proper error will be
raised if we eventually try to override it, either at the setup step,
for the whole case as a moduletag, or as a regular test tag.
2016-05-20 08:44:02 +02:00
Eric Entin 93394ce960 Replace ets table in Kernel.LexicalTracker with a map (#4651)
* Replace ets table in Kernel.LexicalTracker with a map

* Remove :mode and move remotes and unused into the server
2016-05-20 00:46:32 +02:00
José Valim 45f0d076c5 Unify sources and files records 2016-05-20 00:05:43 +02:00
Eric Entin 28caafb164 mix elixir compiler manifest: separate file and module (#4647) 2016-05-19 23:13:13 +02:00
José Valim 793e657eaa Store function definitions and clauses in the same table 2016-05-19 13:23:19 +02:00
José Valim c148193df7 Do not sort items before compilation to allow user configuration 2016-05-19 12:08:27 +02:00
Andrea Leopardi 4499b132de Use a map to pass around in Kernel.ParallelCompiler.spawn_compilers (#4643) 2016-05-19 10:37:41 +02:00
José Valim 7d5233d3b1 Add group_by/3 with a value fun 2016-05-18 22:33:42 +02:00
José Valim 406336145b Update CHANGELOG and docs 2016-05-18 14:53:35 +02:00
José Valim 478ec42778 Use the shortest possible representation when printing floats, closes #3413 2016-05-18 14:38:44 +02:00
José Valim eced1303ef Always add an environment and print it alongside the dep
There are two fixes here:

* All dependencies run in a particular environment, which defaults
  to prod. If two dependencies have different environments, they
  will diverge but the error message wouldn't include the env flag,
  which made it hard to spot the reason. This commit now always
  include the :env option

* Our converger algorithm was comparing [env: :prod] with [] and
  accusing a divergence but they should be the same as the default
  :env is :prod. We have made sure to set the environment to :prod
  for all deps
2016-05-18 11:40:56 +02:00
José Valim b38ace0a79 Tidy up LexicalTracker 2016-05-18 08:42:33 +02:00
eksperimental 94aee777e8 Minor corrections to Writing Documentation 2016-05-17 23:19:31 +07:00
José Valim 7b2806d854 Only overridde only if child did not specify it
Closes #4622
2016-05-17 16:58:59 +02:00
José Valim e774b06f38 Tidy up paragraph and move from appear to listed 2016-05-17 16:18:00 +02:00
José Valim 329a76bd25 Do not include requirement if it is nil 2016-05-17 16:09:15 +02:00
Xavier Noria 0bfaacfd87 Reword the section about hiding docs in "Writing Documentation" (#4634)
[ci skip]
2016-05-17 15:16:35 +02:00
José Valim dbc4f7d04f Detect cousin conflict for optional dependencies, closes #4636 2016-05-17 14:59:29 +02:00
José Valim 461b072bb2 Do not apply overrides for rebar2 deps 2016-05-17 14:48:55 +02:00
José Valim 394fcb7dfd Use ExUnit.start in capture_log example 2016-05-17 09:45:50 +02:00
José Valim 9cdf8743a0 Add capture log example to one of each 2016-05-17 09:44:40 +02:00
José Valim 9441db2703 Make ExUnit.Case.register_test part of ExUnit.Case API 2016-05-17 09:37:58 +02:00
Louis Pilfold 91005d7779 Correct calendar typo 2016-05-17 00:40:21 +01:00
José Valim ec1b5de904 Move check outside of quoted expression 2016-05-17 00:01:21 +02:00
José Valim eb764db812 Relies only on tags for specifying the type 2016-05-16 23:19:18 +02:00
Eric Entin c4d6be6458 Test noun customization (#4635)
* Initial part of test noun customization.

  * Adds `:type` field that defaults to `:test` to `ExUnit.Test` struct

  * Adds `ExUnit.plural_rule/{1,2}`

  * Group `ExUnit.Test` completions by `:type` for display in
    `ExUnit.CLIFormatter`

* Adds experimental test noun customization interface and tests

* "Fix" `IEx.Helpers` test that was relying on `ExUnit` having no specs
2016-05-16 23:09:05 +02:00
José Valim 002dce0f70 Improve docs for maps 2016-05-16 22:58:44 +02:00
Xavier Noria 8ece38d420 minor fixes in "Writing Documentation" [ci skip] (#4632) 2016-05-16 18:58:01 +02:00
José Valim 480e007be1 Make recompile and r as debugging/development helpers 2016-05-16 18:55:17 +02:00
José Valim 3a48c4fdfa Simplify test name under --trace 2016-05-16 17:20:20 +02:00
Tobias Pfeiffer 914a409712 Rephrase some documentation Enum.max* and Enum.min*
The documentation mentioned "biggest" and "smallest" element,
but the meaning may be better conveyed by using "maximal"
and "minimal" instead (since these function start with max* and min*
anyways).
2016-05-16 17:14:44 +02:00
José Valim 43782edc0b Remove unused ExUnit attribute 2016-05-16 17:12:52 +02:00
José Valim 37a979c61e Ensure cases are always loaded and that errors are logged once 2016-05-16 16:36:51 +02:00
José Valim 8294dd7a84 Start running tests as cases are loaded
This allow developers to get feedback sooner at the cost of
ExUnit no longer having a full view of all test cases. This
means test cases are no longer shuffled, but executed as they
are loaded.
2016-05-16 15:58:09 +02:00
José Valim 4f47f03707 Improve unsafe vars warning 2016-05-16 13:40:46 +02:00
Aleksei Magusev 92306f4e81 Correct IO.warn/1,2 examples 2016-05-16 00:38:32 +02:00
Aleksei Magusev d22e456047 Improve warning output (#4631) 2016-05-16 00:10:51 +02:00
José Valim 1015ff8d3b Fix warning errors in IEx and EEx 2016-05-15 21:00:20 +02:00
José Valim f041c79df8 Add refute back to warning test 2016-05-15 20:57:33 +02:00
José Valim b79b041fad Improve ambiguous pipe message 2016-05-15 20:46:37 +02:00
José Valim 7cac73a095 Unify warning calls 2016-05-15 20:34:29 +02:00
Andrea Leopardi 514261fa91 Add a --long-compilation-threshold option to "mix compile" (#4628)
This option changes the value of the `:long_compilation_threshold`
option in `Kernel.ParallelCompiler.files/2`.
2016-05-15 19:17:34 +02:00
Aleksei Magusev 7f53048cb5 Enrich tests for alias, import and require return 2016-05-15 18:32:35 +02:00
José Valim be715bfe36 Add assertions that match on the imported value 2016-05-15 17:55:29 +02:00
Adán Sánchez de Pedro Crespo b0261c7b83 Make lexicals (alias, import and require) return the given module(s) instead of nil (#4629)
* Make lexicals return module name instead of nil

* Update tests
2016-05-15 17:53:10 +02:00
José Valim 408db87845 Print number of files to be compiled 2016-05-15 13:25:53 +02:00
Andrea Leopardi ed8aac2fbb Rename :each_timeout and :timeout compiler options (#4627)
I renamed those to `:each_long_compilation` and
`:long_compilation_threshold`.
2016-05-15 12:51:28 +02:00
José Valim ce69bb22a5 Use --verbose flag in more tests 2016-05-15 12:22:17 +02:00
José Valim 7894c773e5 Use --verbose in tests 2016-05-15 12:11:52 +02:00
José Valim 85f5269a34 Add verbose option throughout compilers 2016-05-15 12:04:47 +02:00