Skip to content

Instantly share code, notes, and snippets.

@dignifiedquire
Created August 14, 2015 20:33
Show Gist options
  • Save dignifiedquire/df6df5a2f541bb294131 to your computer and use it in GitHub Desktop.
Save dignifiedquire/df6df5a2f541bb294131 to your computer and use it in GitHub Desktop.
❯ mix test
Excluding tags: [pandoc: true]
......................................................
1) test docs_from_files returns the doc info for each module function (ExDoc.RetrieverTest)
test/ex_doc/retriever_test.exs:41
Assertion with == failed
code: example_without_docs.source() == "http://example.com/test/fixtures/compiled_with_docs.ex#L15"
lhs: "http://example.com//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L15"
rhs: "http://example.com/test/fixtures/compiled_with_docs.ex#L15"
stacktrace:
test/ex_doc/retriever_test.exs:53
2) test module_page outputs the functions and docstrings (ExDoc.Formatter.HTML.TemplatesTest)
test/ex_doc/formatter/html/templates_test.exs:111
Assertion with =~ failed
code: content =~ sigil_r(<<"<a href=\"", Kernel.to_string(source_url) :: binary, "/blob/master/test/fixtures/compiled_with_docs.ex#L10\"[^>]*>\\n\\s*Source <i class=\"fa fa-code\"></i>\\n\\s*</a>">>, 'ms')
lhs: " <!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"x-ua-compatible\" content=\"ie=edge\">\n \n <title>CompiledWithDocs – Elixir v1.0.1</title>\n \n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta name=\"generator\" content=\"ExDoc\">\n <link rel=\"stylesheet\" href=\"http://fonts.googleapis.com/css?family=Source+Serif+Pro:400,600,700|Source+Sans+Pro:300,400,700|Source+Code+Pro:300,400,700\" />\n <link rel=\"stylesheet\" href=\"dist/app.css\" />\n </head>\n <body>\n\n \n <header id=\"header\">\n \n <h1><a href=\"http://elixir-lang.org\">Elixir</a></h1>\n \n <h2>v1.0.1</h2>\n <button type=\"button\" class=\"btn btn-default btn-sm mobile-nav-toggle\" data-toggle=\"offcanvas\" aria-label=\"Close\">\n <span class=\"fa fa-bars\" aria-hidden=\"true\"></span>\n </button>\n</header>\n\n<div class=\"row row-offcanvas row-offcanvas-left\">\n<section id=\"sidebar\" class=\"col-xs-6 col-sm-3 sidebar-offcanvas\">\n <p class=\"pull-right visible-xs\">\n <button type=\"button\" class=\"btn btn-default btn-sm\" data-toggle=\"offcanvas\" aria-label=\"Close\">\n <span class=\"fa fa-times\" aria-hidden=\"true\"></span>\n </button>\n </p>\n\n <h2 id=\"sub_list_header\">\n \n <a href=\"overview.html\">Overview</a>\n </h2>\n\n <div class=\"nav\">\n \n <span><a id=\"modules_list\" href=\"#full_list\">Modules</a></span>\n \n \n <span role=\"presentation\" class=\"disabled\">Exceptions</span>\n \n \n <span role=\"presentation\" class=\"disabled\">Protocols</span>\n \n </div>\n\n <div id=\"search\" class=\"row\">\n <div class=\"col-xs-10\">\n <div class=\"input-group input-group-sm\">\n <button class=\"btn btn-default\" type=\"button\" aria-label=\"Search\">\n <span class=\"fa fa-search\" aria-hidden=\"true\"></span>\n </button>\n <label for=\"search_field\" class=\"sr-only\">Search</label>\n <input type=\"text\" id=\"search_field\" class=\"form-control\" placeholder=\"search\" autocomplete=\"off\" autofocus=\"autofocus\" results=\"0\">\n </div><!-- /input-group -->\n </div><!-- /.col-xs-10 -->\n <div class=\"col-xs-2\" id=\"spinning\">\n <span aria-hidden=\"true\"></span>\n </div><!-- /.col-xs-2 -->\n </div><!-- /#search .row -->\n\n <script src=\"sidebar_items.js\" defer></script>\n\n <ul id=\"full_list\">\n </ul>\n\n <div id=\"no_results\"></div>\n</section><!--/.sidebar-offcanvas -->\n<section id=\"content\" class=\"col-xs-12 col-sm-9\">\n\n\n <h1>\n CompiledWithDocs\n \n </h1>\n\n <ul class=\"summary-links\">\n \n <li><a href=\"#summary_details\">Summary</a></li>\n \n \n \n <li><a href=\"#functions_details\">Functions</a></li>\n \n \n <li><a href=\"#macros_details\">Macros</a></li>\n \n \n </ul>\n\n \n <section id=\"moduledoc\" class=\"docstring\">\n <p>moduledoc</p>\n\n<h2>Example</h2>\n\n<pre><code class=\"elixir\">CompiledWithDocs.example\n</code></pre>\n\n </section>\n \n\n \n <a href=\"https://github.com/elixir-lang/elixir/blob/master//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L1\" class=\"view-source\">Source</a>\n \n\n \n <section id=\"summary_details\" class=\"details-list\">\n <h1 id=\"summary\" class=\"section-heading\">Summary</h1>\n <div class=\"summary\">\n <div class=\"summary-row\">\n <div class=\"summary-signature\"><a href=\"#example/2\">example(foo, bar \\\\ Baz)</a></div>\n \n <div class=\"summary-synopsis\"><p>Some example</p>\n</div>\n \n</div>\n<div class=\"summary-row\">\n <div class=\"summary-signature\"><a href=\"#example_1/0\">example_1()</a></div>\n \n <div class=\"summary-synopsis\"><p>Another example</p>\n</div>\n \n</div>\n<div class=\"summary-row\">\n <div class=\"summary-signature\"><a href=\"#example_without_docs/0\">example_without_docs()</a></div>\n \n</div>\n\n </div>\n </section>\n \n\n \n\n \n <section id=\"functions_details\" class=\"details-list\">\n <h1 class=\"section-heading\">Functions</h1>\n <section class=\"detail\">\n <div class=\"detail-header\" id=\"example/2\">\n <span class=\"signature\"><strong>example(foo, bar \\\\ Baz)</strong></span>\n <div class=\"detail-header-links\">\n <span class=\"detail-type\">(function)</span>\n <a href=\"#example/2\" class=\"detail-link\" title=\"Link to this function\">\n <i class=\"fa fa-link\"></i>\n </a>\n </div>\n </div>\n \n <section class=\"docstring\">\n <p>Some example</p>\n\n </section>\n \n <a href=\"https://github.com/elixir-lang/elixir/blob/master//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L10\" class=\"view-source\">\n Source <i class=\"fa fa-code\"></i>\n </a>\n \n</section>\n<section class=\"detail\">\n <div class=\"detail-header\" id=\"example_without_docs/0\">\n <span class=\"signature\"><strong>example_without_docs()</strong></span>\n <div class=\"detail-header-links\">\n <span class=\"detail-type\">(function)</span>\n <a href=\"#example_without_docs/0\" class=\"detail-link\" title=\"Link to this function\">\n <i class=\"fa fa-link\"></i>\n </a>\n </div>\n </div>\n \n <section class=\"docstring\">\n \n </section>\n \n <a href=\"https://github.com/elixir-lang/elixir/blob/master//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L15\" class=\"view-source\">\n Source <i class=\"fa fa-code\"></i>\n </a>\n \n</section>\n\n </section>\n \n\n \n <section id=\"macros_details\" class=\"details-list\">\n <h1 class=\"section-heading\">Macros</h1>\n <section class=\"detail\">\n <div class=\"detail-header\" id=\"example_1/0\">\n <span class=\"signature\"><strong>example_1()</strong></span>\n <div class=\"detail-header-links\">\n <span class=\"detail-type\">(macro)</span>\n <a href=\"#example_1/0\" class=\"detail-link\" title=\"Link to this macro\">\n <i class=\"fa fa-link\"></i>\n </a>\n </div>\n </div>\n \n <section class=\"docstring\">\n <p>Another example</p>\n\n </section>\n \n <a href=\"https://github.com/elixir-lang/elixir/blob/master//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L13\" class=\"view-source\">\n Source <i class=\"fa fa-code\"></i>\n </a>\n \n</section>\n\n </section>\n \n\n \n <hr>\n <footer>\n <p>\n This site was built using <a href=\"https://github.com/elixir-lang/ex_doc\" title=\"ExDoc\">ExDoc</a>\n and <a href=\"http://elixir-lang.org/\" title=\"Elixir\">Elixir</a>.\n </p>\n </footer>\n </section> <!--/content -->\n</div><!--/row -->\n\n <script src=\"dist/app.js\"></script>\n </body>\n</html>\n\n"
rhs: ~r/<a href="https:\/\/github.com\/elixir-lang\/elixir\/blob\/master\/test\/fixtures\/compiled_with_docs.ex#L10"[^>]*>\n\s*Source <i class="fa fa-code"><\/i>\n\s*<\/a>/ms
stacktrace:
test/ex_doc/formatter/html/templates_test.exs:120
.
3) test docs_from_files returns the source (ExDoc.RetrieverTest)
test/ex_doc/retriever_test.exs:109
Assertion with == failed
code: node.source() == "http://foo.com/bar/test/fixtures/compiled_with_docs.ex#L1"
lhs: "http://foo.com/bar//Users/dignifiedquire/opensource/ex_doc_official/test/fixtures/compiled_with_docs.ex#L1"
rhs: "http://foo.com/bar/test/fixtures/compiled_with_docs.ex#L1"
stacktrace:
test/ex_doc/retriever_test.exs:111
.........................
Finished in 2.0 seconds (1.0s on load, 0.9s on tests)
83 tests, 3 failures
Randomized with seed 967338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment