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
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
fc90206862
Document and ensure invalid tests have proper formatter state, closes #13373
2024-02-27 16:33:17 +01: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
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
Vinícius Müller
1d978bf73c
Improve unclosed delimiter messages ( #13123 )
2023-12-04 12:46:15 +01:00
José Valim
fe8b31eef8
Introduce deprecations scheduled for v1.17
2023-10-29 13:07:04 +01: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
9f984f82d2
Raise on dedented code in doctests
2023-08-27 11:00:57 +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
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
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
Vinícius Müller
0da6662b5e
Improvide diagnostics on lexer exceptions ( #12670 )
2023-06-19 11:07:59 +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
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
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
677bdd24f1
Fix regression in doctests
2023-05-26 18:17:19 +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
José Valim
0dadb08ac7
Allow capturing deprecated log level, closes #12605
2023-05-25 15:24:27 +02:00
Damir Vandic
ef673a103d
Pass module tags to setup_all ( #12545 )
2023-05-07 12:57:44 +02:00
José Valim
80dc08c4ae
Fix race conidtion on ExUnit suite
2023-03-08 10:43:27 +01:00
Andrea Leopardi
8405180ebc
Use Erlang logger handlers in ExUnit.CaptureLog ( #12408 )
2023-02-17 07:54:24 +01:00
José Valim
318dd5297b
Introduce default_formatter and default_handler config for Logger ( #12400 )
...
We now fully integrate with Erlang/OTP logger.
* Logger.Formatter can now instantiate a compatible Erlamg/OTP logger formatter
* The default_handler configures the default handler
* The default_formatter configures the default formatter
* Backends front-end will be moved to logger_backends package,
but the implementation will still be shipped as part of Elixir
2023-02-15 17:31:18 +01:00
Andrea Leopardi
ac8a4a3d1b
More errors improvements in ExUnit.Callbacks ( #12390 )
2023-02-10 10:12:28 +01:00
Andrea Leopardi
9881163ace
Improve errors for ExUnit callbacks ( #12382 )
2023-02-10 08:14:51 +01:00
felipe stival
b3cc3dd47c
Accept {module, function} tuples in ExUnit setup ( #12378 )
2023-02-05 21:42:08 +01:00