All Versions
6
Latest Version
Avg Release Cycle
248 days
Latest Release
1772 days ago

Changelog History

  • v0.4.0 Changes

    May 23, 2019
    • ๐Ÿ”„ Changed the API for defining fixtures to use @fixture instead of @tag
    • โž• Added support for tuples of fixtures
  • v0.3.1 Changes

    February 01, 2016
    • ๐Ÿ“š Hid some documentation on the internals of the library from the public API docs.
    • โœ… Module scoped dependencies can no longer depend on test scoped dependencies.
    • ๐Ÿ›  Fixed an issue where fixtures were marked as "function" scoped by default, rather than the "test" scoped expected in most places and stated in the docs.
    • ๐Ÿ›  Fixed an issue where module scoped fixtures would be created on module start, but then also created whenever a test depended on them.
  • v0.3.0 Changes

    January 19, 2016

    ๐Ÿš€ This release adds FixtureModules. These are modules of fixtures that can be imported into tests or other fixture modules.

    โœ… ExUnitFixtures will automatically import any fixture modules that it finds named fixtures.exs, and these will automatically be used by any tests level with or further down in the directory heirarchy. For example, we can now create this directory heirarchy:

    tests/
        fixtures.exs
            defmodule GlobalFixtures do
              use ExUnitFixtures.FixtureModule
    
              deffixture db do
                create_db_conn()
              end
            end
    
        model_tests/
            fixtures.exs
                defmodule ModelFixtures do
                  use ExUnitFixtures.FixtureModule
    
                  deffixture user(db) do
                    user = %User{name: "Graeme"}
                    insert(db, user)
                    user
                  end
                end
    
            user_tests.exs
                defmodule UserTests do
                  use ExUnitFixtures
    
                  @tag fixtures: [:user]
                  test "user has name", context do
                    assert context.user.name == "Graeme"
                  end
    
  • v0.2.0 Changes

    January 01, 2016
    • โž• Added module scoped fixtures that are created at the start of a test module and teared down at the end.
    • โž• Added autouse fixtures that are added to every test automatically.
    • โœ‚ Removed a bunch of stuff from the README in favour of pointing to hexdocs.pm
  • v0.1.1 Changes

    January 01, 2016
    • ๐Ÿ‘• Linter dependencies are now in the lint mix env, so not pulled into dependant apps.
    • ๐Ÿš€ Defined package details for hex.pm release.
  • v0.1.0 Changes

    January 01, 2016
    • ๐ŸŽ‰ Initial release. Supports basic fixtures w/ dependencies in a single module.