MixTestObserver

MixTestObserver is a semiauto test runner. Run mix test when each time you write whose target path to the observing file.

For why:

For your information:

Versions

This has been confirmed to work under the following conditions.

$ elixir -v
Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.13.1 (compiled with Erlang/OTP 24)

Installation

def deps do
  [
    {:mix_test_observer, "~> 0.1.0", only: [:dev]},
  ]
end

See also FileSystem hex, on which this package depends.

Documentation is here. Documentation is generated with ExDoc. and published on HexDocs.

Usage

Run the mix task:

mix test.observer <filepath>

Start observing <filepath>.

Next try writing test target path to <filepath> like $ echo 'test/' > <filepath>, then you can get the test results (mix test test/).

For your information:

License

Copyright 2022 ta.to.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Thanks