Skip to content

Commit 6a14b8a

Browse files
authored
🏷️ Prepare v4.2.0 release (#134)
1 parent 69c75b8 commit 6a14b8a

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,19 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased](https://github.com/randycoulman/mix_test_interactive/compare/v4.1.2...HEAD)
8+
## [Unreleased](https://github.com/randycoulman/mix_test_interactive/compare/v4.2.0...HEAD)
9+
10+
## [v4.2.0](https://github.com/randycoulman/mix_test_interactive/compare/v4.1.2...v4.2.0) - 2024-03-19
11+
12+
### Fixed
13+
14+
- On Unix-like system we no longer start the client application prematurely. Previously, we'd run (essentially) `mix do run -e 'Application.put_env(:elixir, :ansi_enabled, true)', test` in order to enable ANSI control codes/colors when running tests. However, `mix run` by default starts the application. Normally this would be fine, but in some cases it can cause problems. We now use `mix do eval 'Application.put_env(:elixir, :ansi_enabled, true)', test` instead, which delays starting the application until the `mix test` task runs. ([#132](https://github.com/randycoulman/mix_test_interactive/pull/132))
15+
16+
- Properly handle the `--no-start` option to `mix test` on Unix-like systems. Previously, we were using that option for the `mix run -e` command we were using to enable ANSI output, but not passing it through to `mix test` itself. ([#132](https://github.com/randycoulman/mix_test_interactive/pull/132))
17+
18+
### Added
19+
20+
- We make the use of ANSI control code output configurable by adding the `--(no-)ansi-enabled` command-line option and `ansi_enabled` configuration setting. Previously, we'd enable ANSI output automatically on Unix-like systems and not on Windows. This is still the default, but now Windows users can opt into ANSI output. Since Windows 10, ANSI support has been available if the [appropriate registry key is set](https://hexdocs.pm/elixir/IO.ANSI.html). Additional, users on Unix-like systems can opt out of ANSI output if desired. ([#133](https://github.com/randycoulman/mix_test_interactive/pull/133))
921

1022
## [v4.1.2](https://github.com/randycoulman/mix_test_interactive/compare/v4.1.1...v4.1.2) - 2024-12-14
1123

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ list of dependencies in your project's `mix.exs` file:
3636
```elixir
3737
def deps do
3838
[
39-
{:mix_test_interactive, "~> 4.1", only: :dev, runtime: false}
39+
{:mix_test_interactive, "~> 4.2", only: :dev, runtime: false}
4040
]
4141
end
4242
```
@@ -173,38 +173,38 @@ test`).
173173
configuration. You can also use command line arguments to specify these
174174
configuration options, or to override configured options.
175175

176-
### `clear`: Clear the console before each run
176+
### `ansi_enabled`: Enable ANSI (colored) output when running tests
177177

178-
If you want `mix test.interactive` to clear the console before each run, you can
179-
enable this option in your config/dev.exs as follows:
178+
When `ansi_enabled` is set to true, `mix test.interactive` will enable ANSI
179+
output when running tests, allowing for `mix test`'s normal colored output.
180180

181181
```elixir
182182
# config/config.exs
183183
import Config
184184

185185
if Mix.env == :dev do
186186
config :mix_test_interactive,
187-
clear: true
187+
ansi_enabled: false
188188
end
189189
```
190190

191-
### `ansi_enabled`: Enable ANSI (colored) output when running tests
191+
The default is `false` on Windows and `true` on other platforms.
192192

193-
When `ansi_enabled` is set to true, `mix test.interactive` will enable ANSI
194-
output when running tests, allowing for `mix test`'s normal colored output.
193+
### `clear`: Clear the console before each run
194+
195+
If you want `mix test.interactive` to clear the console before each run, you can
196+
enable this option in your config/dev.exs as follows:
195197

196198
```elixir
197199
# config/config.exs
198200
import Config
199201

200202
if Mix.env == :dev do
201203
config :mix_test_interactive,
202-
ansi_enabled: false
204+
clear: true
203205
end
204206
```
205207

206-
The default is `false` on Windows and `true` on other platforms.
207-
208208
### `command`: Use a custom command
209209

210210
By default, `mix test.interactive` uses `mix test` to run tests.

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule MixTestInteractive.MixProject do
22
use Mix.Project
33

4-
@version "4.1.2"
4+
@version "4.2.0"
55
@source_url "https://github.com/randycoulman/mix_test_interactive"
66

77
def project do

0 commit comments

Comments
 (0)