Permalink
Commits on Mar 5, 2018
  1. Optimize ExUnit manifest to store only failures

    myronmarston authored and josevalim committed Mar 4, 2018
    Since that is the only information we care about, we do not
    have to store every test with its status. This allows us to
    vastly simplify the manifest, as we no longer have to use an
    `:entry` record. Reading and writing the manifest should be
    faster now, since the manifest tends toward being empty.
    
    Since we are only storing failures, I have renamed the manifest
    (and the `:manifest_file` option and file path) to indicate that
    it deals only with failures.
    
    Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
  2. Add support for `mix test --failed`

    myronmarston authored and josevalim committed Feb 18, 2018
    This uses the ExUnit manifest to filter to only tests that failed
    the last time they ran. As an optimization, we filter out files
    that have no failures so we load the minimum set of files necessary.
    
    Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
  3. Refactor: have mix pass the manifest file instead of dir path

    myronmarston authored and josevalim committed Feb 24, 2018
    Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
  4. Deal with `:file` tags that were incorrectly overriden by a `setup` b…

    myronmarston authored and josevalim committed Feb 20, 2018
    …lock
    
    Given a `setup` block like:
    
        setup do
          {:ok, file: :foo}
        end
    
    ...ExUnit raises an exception, but it also overrides the test's
    `:file` tag, which could cause problems for the manifest since it
    looks up the existence of the file on the file system, and would
    get an error if it was not a string.
    
    Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
Commits on Feb 8, 2018
  1. Store the last_run_status of each test in a manifest (#7082)

    myronmarston authored and josevalim committed Feb 8, 2018
    This will support filtering tests to just ones that failed
    the last time they ran.
Commits on Feb 5, 2018
  1. Cleanup typos in access docs (#7311)

    myronmarston authored and josevalim committed Feb 5, 2018
Commits on May 22, 2017
  1. Don't call self/1 unnecessarely in Task.Supervisor (#6129)

    myronmarston authored and whatyouhide committed May 22, 2017
Commits on Dec 1, 2016
  1. Improve IEx autocompletion to handle manual imports (#5518)

    myronmarston authored and josevalim committed Dec 1, 2016
  2. Improve IEx autocompletion to handle variable names (#5504)

    myronmarston authored and josevalim committed Dec 1, 2016
Commits on Nov 29, 2016
  1. Improve IEx autocomplete to support navigating map atom keys (#5488)

    myronmarston authored and josevalim committed Nov 29, 2016
Commits on Oct 7, 2016
Commits on Oct 5, 2016
  1. Improve CHANGELOG entry (#5291)

    myronmarston authored and lexmag committed Oct 5, 2016
    There were a few other functions added in #5140.
Commits on Aug 15, 2016
  1. Add `min/2`, `max/2` and `min_max/2` to `Enum` (#5140)

    myronmarston authored and josevalim committed Aug 15, 2016
Commits on Jun 24, 2016
  1. Stop appending a trailing dot when autocompleting modules in IEx. (#4863

    myronmarston authored and josevalim committed Jun 24, 2016
    )
    
    I find this behavior to be surprising and annoying. I regularly
    type `h [first few chars of mod name]<tab><enter>` in IEx to read
    the read the moduledoc of a particular module, and the trailing
    dot gets in the way every time.
    
    Instead, we append a dot when you hit tab after the module name is
    already complete--so if you hit tab twice, it will autocomplete the
    module name and then append a trailing dot.
Commits on Jun 17, 2016
  1. Clarify some confusing docs for the === operator (#4823)

    myronmarston authored and whatyouhide committed Jun 17, 2016
    The Erlang docs[1] describe the equivalent `=:=` operator as
    "Exactly equal to", so I think "exact equality operator" is a
    better name for this.
    
    [1] http://erlang.org/doc/reference_manual/expressions.html#id80318
Commits on Jun 2, 2016
  1. Provide information about how to force install hex and rebar (#4758)

    myronmarston authored and lexmag committed Jun 2, 2016
    As mentioned in this mailing list thread:
    
    https://groups.google.com/d/msg/elixir-lang-core/JptOMxrLxcs/95mR6YYJDAAJ
    
    ...I could not figure out what the command to force install rebar was.
    Including the information in the prompt will help users figure this out
    without having to ask like I did.
Commits on May 11, 2016
  1. Add section about `after` to special forms docs. (#4599)

    myronmarston authored and fishcakez committed May 11, 2016
    Clarify that `after` in `try` is not guaranteed to run because an exit signal can abruptly stop the process. 
    
    See https://groups.google.com/forum/#!topic/elixir-lang-core/NWvFwUWo2QQ for background conversation.
Commits on Apr 22, 2016
  1. Use consistent spacing in code snippet. (#4547)

    myronmarston authored and lexmag committed Apr 22, 2016
    2 spaces instead of 1.
Commits on Apr 20, 2016
  1. Update Typespecs doc page to mention argument/element naming.

    myronmarston committed Apr 20, 2016
    As far as I can tell, this is not documented anywhere.
Commits on Jan 26, 2016
  1. Make `__DIR__` docs more accurate.

    myronmarston committed Jan 26, 2016
    The old wording -- "the current directory" -- made me think it returned
    your current working directory, but it's really the directory of the
    current file.
Commits on Jan 3, 2016
  1. Improve error message for when the named mix task cannot be found.

    myronmarston committed Jan 3, 2016
    Previously, you could get the incredibly confusing error:
    
    > The task "acronym.http" could not be found. Did you mean "acronym.http"?
    
    This happened when you named your module `Mix.Tasks.Acronym.HTTP` rather
    than `Mix.Tasks.Acronym.Http` as expected. Since we can detect this
    situation, it's helpful to give the user a clear explanation of the
    problem.
  2. abbreviations -> acronyms

    myronmarston committed Jan 3, 2016
    Using all capitals is recommended only when you have an acronym
    like HTTP, IO, SCM, etc. For an abbreviation like "Misc" or "Utils"
    all caps should not be used.
Commits on Nov 29, 2015
  1. Reword confusing `build_path` documentation.

    myronmarston committed Nov 29, 2015
    See 7963398 for background.
Commits on Jun 20, 2015
  1. Update Application docs to make them more accurate.

    myronmarston committed Jun 19, 2015
    The docs claimed that `get_env`/`fetch_env`/`fetch_env!` return
    a default value/return :error/raise an exception when passed an
    application that is not loaded. However, this is not the observed
    behavior:
    
    iex(1)> Application.put_env :foo, :bar, :baz
    :ok
    iex(2)> Application.get_env :foo, :bar
    :baz