chemistry alternatives and similar packages
Based on the "Testing" category.
Alternatively, view chemistry alternatives based on common mentions on social networks and blogs.
-
hound
Elixir library for writing integration tests and browser automation -
proper
PropEr: a QuickCheck-inspired property-based testing tool for Erlang -
bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. -
StreamData
Data generation and property-based testing for Elixir. ๐ฎ -
ExVCR
HTTP request/response recording library for elixir, inspired by VCR. -
amrita
A polite, well mannered and thoroughly upstanding testing framework for Elixir -
power_assert
Power Assert in Elixir. Shows evaluation results each expression. -
FakerElixir
[unmaintained] FakerElixir generates fake data for you. -
shouldi
Elixir testing libraries with nested contexts, superior readability, and ease of use -
katt
KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang. -
FakeServer
FakeServer integrates with ExUnit to make external APIs testing simpler -
Stubr
Stubr is a set of functions helping people to create stubs and spies in Elixir. -
mecks_unit
A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library -
mix_test_interactive
Interactive watch mode for Elixir's mix test. https://hexdocs.pm/mix_test_interactive/ -
test_selector
Elixir library to help selecting the right elements in your tests. -
factory_girl_elixir
Minimal implementation of Ruby's factory_girl in Elixir. -
toxiproxy_ex
ToxiproxyEx is an Elixir API client for the resilience testing tool Toxiproxy. -
ex_parameterized
This library support parameterized test with test_with_params macro. -
mix_erlang_tasks
Common tasks for Erlang projects that use Mix -
cobertura_cover
Output test coverage information in Cobertura-compatible format -
ex_unit_fixtures
A library for defining modular dependencies (fixtures) for ExUnit tests.
Collect and Analyze Billions of Data Points in Real Time
Do you think we are missing an alternative of chemistry or a related project?
README
Chemistry
A testing framework for Elixir.
Installation
available in Hex, the package can be installed as:
- Add
chemistry
to your list of dependencies inmix.exs
:
def deps do
[{:chemistry, "~> 0.1.4"}]
end
- Ensure
chemistry
is started before your application:
def application do
[applications: [:chemistry]]
end
Examples
From Interactive Elixir, type iex
from terminal.
iex(1)> import Chemistry.Lab
Chemistry.Lab
iex(2)> expect 1 == 1
.:ok
iex(3)> expect 1 > 1
FAILURE:
Expected: 1 to be greater than 1
:ok
iex(4)>
Place all labs inside of ./lab
and be sure to append _lab.exs
to
anything you want to be a lab.
Write expressive tests using a call to it
followed by a description
for the lab.
defmodule MathLab do
use Chemistry.Lab
it "Can use integers for addition and subtraction." do
expect 2 + 3 == 5
expect 5 - 5 == 10
end
it "Can use integers for multiplication and division" do
expect 5 * 5 == 25
expect 10 / 2 == 5
end
end
Run iex
from the terminal to see an example file message.
iex(1)> MathLab.run
.===========================================
FAILURE: Can use integers for addition and subtraction.
===========================================
FAILURE:
Expected: 0 to be equal to 10
:ok
License
Copyright 2016 Yianna Kokalas
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 Apache 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.
*Note that all licence references and agreements mentioned in the chemistry README section above
are relevant to that project's source code only.