José Valim
1ece71a831
Handle Windows separators on mix test ( #13232 )
...
Closes #13225 .
2024-01-07 23:07:20 +01:00
Vinícius Müller
106539b5d2
Improve unclosed delimiter messages ( #13123 )
2023-12-04 22:08:53 +10:00
Andrea Leopardi
6145599638
Add t/0 types to remaining ExUnit exceptions ( #13139 )
2023-11-23 12:17:02 +01:00
Andrea Leopardi
adff7f6d34
Add t/0 types for some ExUnit exceptions ( #13134 )
2023-11-23 17:15:59 +08:00
Andrea Leopardi
2364f04991
Add callback docs to ExUnit.Formatter ( #13135 )
2023-11-23 17:15:59 +08:00
Andrea Leopardi
2caacae2e4
Add some specs and types to ExUnit.Formatter ( #13130 )
2023-11-23 17:15:59 +08:00
Gary Rennie
5fa100b997
Mention capture_log with a level in the ExUnit config ( #13020 )
2023-10-18 16:18:35 +02:00
Michał Łępicki
8c24718090
Clean up unreachable function clause in ex_unit/filters.ex ( #13003 )
...
The parse_kv function always gets called with a binary second argument, from line 139
This function clause was kept after refactoring in https://github.com/elixir-lang/elixir/commit/4971af9fc9848b3c8e081a62f586014eda23f446
2023-10-12 21:59:53 +02:00
José Valim
4971af9fc9
Parse filter values on ExUnit.Filters.parse/1
2023-10-08 11:06:50 +02:00
Aziz Köksal
a0b42e8cc1
Allow mix test multi locations ( #12959 )
2023-10-08 10:45:39 +02:00
José Valim
60efbf751d
Address tests on Erlang/OTP 26.1, closes #12975
2023-10-01 15:46:17 +02:00
José Valim
7de603134c
Perform single pass in ExUnit.Filters
2023-09-23 11:04:34 +02:00
José Valim
df114285ce
Split adjust indent into text and code
2023-09-17 10:13:53 +02:00
José Valim
abbc3924be
Add instructions on how to run examples, closes #12939
2023-09-16 19:15:45 +02:00
José Valim
9f984f82d2
Raise on dedented code in doctests
2023-08-27 11:00:57 +02:00
Mitchell Hanberg
fc8793d96a
docs: grammar in start_link_supervised/2 ( #12858 )
2023-08-12 23:19:46 +02:00
José Valim
37bcb194df
Fix example in describe
2023-08-09 17:06:16 +02:00
José Valim
4a39114f06
Fix references to String.capitalize/1
2023-08-09 17:03:41 +02:00
José Valim
a9f650a9e9
Fix infinite loop when diffing functions, closes #12828
2023-08-02 20:45:51 +02:00
Vinícius Müller
48b471d055
Update diagnostics reporting format ( #12813 )
2023-07-20 18:49:55 +02:00
Santiago Ferreira
f027c66712
Remove duplicated async: true option from example ( #12798 )
2023-07-16 15:50:18 +02:00
José Valim
7858bac32b
Revert "Simplify OnExitHandler API"
...
The private API unfortunately is used by other projects,
which first need to be migrated.
2023-07-13 12:22:56 +02:00
José Valim
2d2ec036f8
Remove unecessary ExUnit process
2023-07-08 12:24:04 +02:00
José Valim
41a18e9e23
Simplify OnExitHandler API
2023-07-08 12:21:13 +02:00
kevinferretti
67207f4b75
Improve default ExUnit seed algorithm and allow changing via config ( #12733 )
2023-07-01 19:17:38 +02:00
José Valim
70bbfd0964
Refactor doctest tests
2023-06-28 22:32:02 +02:00
Rich Cavanaugh
8cbea343ee
Allow variables defined in doctests to be used in expectation ( #12730 )
2023-06-28 22:28:45 +02:00
Jean Klingler
c312b47d08
Always respect options passed to capture_log ( #12721 )
2023-06-27 20:56:08 +09:00
José Valim
0a66246e97
Fix doctest suite
2023-06-26 21:13:22 +02:00
Vinícius Müller
a9e826e3bb
Assert on relative lines in doctest tests ( #12699 )
2023-06-23 00:03:17 +02:00
Jannik Becher
e23b60b37f
:test_type does not affect the test execution ( #12701 )
2023-06-22 23:53:34 +02:00
José Valim
d80a567532
Fix non-result doctest terminated with fences, closes #12695
2023-06-22 19:05:43 +02:00
José Valim
f01df3dcb7
Add doctest_line interpolation
2023-06-22 18:12:29 +02:00
José Valim
be4a62aa7e
Avoid trailing whitespace on ExDoc messages
2023-06-22 14:46:11 +02:00
José Valim
79dd9c4af6
Fix race condition on concurrent capture_log, closes #12692
2023-06-21 16:44:37 +02:00
Vinícius Müller
0da6662b5e
Improvide diagnostics on lexer exceptions ( #12670 )
2023-06-19 11:07:59 +02:00
nico piderman
14f24b0d52
Extract mark_tests_invalid/2 function in ExUnit.Runner ( #12658 )
2023-06-13 14:41:37 +02:00
nico piderman
79c89c84ae
Mark test cases as invalid when an exit occurs during setup_all ( #12651 )
2023-06-12 12:52:17 +02:00
José Valim
d7c6edbe78
Deprecate negative steps in slice and date operations
2023-06-03 20:44:00 +02:00
Wojtek Mach
1e3341382f
Fix Macro.to_string/1 and ExUnit diffs for multi-letter sigils ( #12627 )
2023-06-01 16:17:51 +02:00
José Valim
490bd9e658
Validate fences early on doctests and avoid stripping twice
2023-05-31 07:52:19 +02:00
José Valim
8e0f3621b2
Include doctest_data in doctest tags
2023-05-30 20:20:57 +02:00
José Valim
491cf4f131
Fix doctest line failure with multiple assertions
2023-05-30 19:34:52 +02:00
José Valim
e6c052dbf5
Refactor doctests for upcoming bug fixes
2023-05-30 18:11:58 +02:00
Zach Allaun
f2ab40bfdb
Expose compile-time test and tag information ( #12608 )
2023-05-29 09:36:01 +02:00
José Valim
3b77086073
Define "nutrition facts" for "use SomeModule" ( #12613 )
...
One common concern about using Elixir libraries
is that "use SomeModule" does not make clear how
it impacts the caller. Most of the time those
changes are minor but it is impossible to know
without traversing the source code.
This pull request suggests defining a summary
alongside each module that succintly explains
the impact of using it.
This is documented as best practice in our guides
and we added the note to all of Elixir modules.
2023-05-29 09:33:21 +02:00
José Valim
677bdd24f1
Fix regression in doctests
2023-05-26 18:17:19 +02:00
José Valim
be9dc8a418
mix format
2023-05-26 12:45:07 +02:00
José Valim
8448600ebf
Fix doctest lines when compilation fails, closes #12607
2023-05-26 12:44:52 +02:00
José Valim
ea31af5944
Refactor doctests suite for maintanability
2023-05-26 12:04:12 +02:00