Theodor Fiedler
bc5cf4c4db
Consolidate spelling of life cycle ( #13541 )
2024-05-06 11:56:13 +02:00
Jean Klingler
8e4a0aae0d
Replace semi-column by comma before otherwise ( #13535 )
2024-05-05 01:26:31 +09:00
José Valim
5422815fde
Include max cases in ExUnit reports ( #13521 )
...
Some CI environments may report the wrong number
of cores to the Erlang VM. So we choose to print
the number of max cases along side the seed
(both which affect randomness of tests) at the
top of each suite.
2024-05-02 11:09:32 +02:00
Jean Klingler
47ee0236c8
Warn when using @tag outside of describe ( #13415 )
2024-03-18 06:59:10 +09:00
gpopides
3afc1b3b72
Add slowest_modules option to mix test ( #13409 )
2024-03-12 19:27:45 +01:00
José Valim
966d502d08
Pass seed around, reduce args on async_loop
2024-03-08 17:01:24 +01:00
Steffen Deusch
d75930bb0b
Add --repeat-until-failure to mix test ( #13398 )
2024-03-08 15:31:38 +01:00
Jean Klingler
46317841c8
Use System.otp_release/0 in tests for consistency ( #13397 )
2024-03-06 21:18:35 +09:00
José Valim
d388279ec2
Improve capture_log docs with latest Logger
2024-03-05 18:37:14 +01:00
cui fliter
cf37e654f5
Fix a typo in the docs ( #13389 )
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2024-03-04 19:10:34 +01:00
H
14c0b30101
Remove duplicate line in formatter_callback doc ( #13387 )
2024-03-04 15:41:28 +09:00
Nicolas Ferraro
270170dbd7
Update ExUnit.Callbacks docs to reference start_link_supervised! ( #13379 )
2024-02-29 20:39:15 +01:00
José Valim
0a0a96ece2
Skip undefined warnings during bootstrap
2024-02-29 14:57:31 +01:00
José Valim
dd13c508e8
Add mix test --breakpoints
2024-02-29 14:48:54 +01:00
José Valim
7e5ccce5ef
Simplify capture clauses and ensure group leader is reversed
2024-02-29 08:37:25 +01:00
Douglas Vought
2a430b1795
Support IO capture of group leader from external process ( #13374 )
2024-02-29 08:21:25 +01:00
José Valim
0a51c21290
Optimize ExUnit runner by short-circuiting logic and merging list passes
2024-02-28 13:03:10 +01:00
José Valim
fc90206862
Document and ensure invalid tests have proper formatter state, closes #13373
2024-02-27 16:33:17 +01:00
Jean Klingler
99107e74f7
Fix doctest example since Inspect.MapSet changed ( #13366 )
2024-02-24 22:20:24 +09:00
Jean Klingler
28248f4fc5
Fix assertion for ex_unit test in OTP27 ( #13357 )
...
Most likely due to this change
https://github.com/erlang/otp/commit/be9c343f7188f5845c8e2f31a614e4d257452abf
2024-02-19 19:36:05 +09:00
Philip Munksgaard
7baca5e00e
Escape pinned values when computing diff ( #13354 )
...
Take these two tests:
```elixir
test "correctly colored" do
assert [{:foo}] = [{:bar}]
end
test "incorrectly colored" do
val = [{:foo}]
assert ^val = [{:bar}]
end
```
That's because when diffing a pin, we were not converting the underlying
diff context from match to ===.
This fixes #13348
2024-02-17 12:51:07 +01:00
Łukasz Samson
8e1c0787ba
Document :max_failures_reached event in ExUnit.Formatter ( #13332 )
2024-02-10 15:18:49 +01:00
Benjamin Milde
ab756dafc2
Integrate start_supervised supervisor with $callers ( #13253 )
2024-01-28 22:22:37 +01:00
Jean Klingler
fe649feaf4
Resolve relative paths in exunit filter ( #13258 )
2024-01-18 08:06:35 +09:00
José Valim
818734b8e1
Handle Windows separators on mix test ( #13232 )
...
Closes #13225 .
2024-01-07 23:07:04 +01:00
Takumi Hara
66d86a2231
Improve docs for assert_receive/3 ( #13222 )
2024-01-04 09:07:00 +01:00
Vinícius Müller
1d978bf73c
Improve unclosed delimiter messages ( #13123 )
2023-12-04 12:46:15 +01:00
Andrea Leopardi
705794a723
Add t/0 types to remaining ExUnit exceptions ( #13139 )
2023-11-23 12:16:15 +01:00
Andrea Leopardi
1a65b04c92
Add t/0 types for some ExUnit exceptions ( #13134 )
2023-11-23 04:23:54 +01:00
Andrea Leopardi
68b03eb9ee
Add callback docs to ExUnit.Formatter ( #13135 )
2023-11-23 04:23:27 +01:00
Andrea Leopardi
07af739c30
Add some specs and types to ExUnit.Formatter ( #13130 )
2023-11-22 10:52:33 +01:00
José Valim
0352aba8c7
Improve capture_log docs
2023-11-16 09:51:01 +01:00
José Valim
7ff58d75f5
Fix warnings and messages on Erlang/OTP 25
2023-10-31 08:02:15 +01:00
José Valim
2f43c8cc47
Warn on map.field() and mod.function
2023-10-30 21:43:27 +01:00
José Valim
fe8b31eef8
Introduce deprecations scheduled for v1.17
2023-10-29 13:07:04 +01: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