Skip to content

Releases: carl-berg/adatabasefixture

Release 0.5.1

13 Jun 11:10
2388d8e
Compare
Choose a tag to compare

What's Changed

  • Bugfix - Connectionstring issue when not specifying database name by @carl-berg in #8

Full Changelog: adatabasefixture-0.5.0...adatabasefixture-0.5.1

Release 0.5.0

12 Jun 12:21
c2ed049
Compare
Choose a tag to compare

This release has removed the helper libraries:

  • ADatabaseFixture.SqlServer, which is no longer needed since the class SqlServerDatabaseAdapter now uses a connection factory, which removes the dependency on Microsoft.Data.SqlClient. This class has since been moved into the core package.
  • ADatabaseFixture.GalacticWasteManagement, this package has been deprecated since GalacticWasteManagement has been deprecated.
  • ADatabaseFixture.FluentMigrator, this package has been removed since creating your own migrator implementation is simple enough.

Now that the helper packages have been removed, consumers a now required to implement their own fixture migrators. This puts a little bit of extra work on the developer, but reduces the risk of incompatibility where the user might want to use a newer or older version. The Readme file has been appended with instructions on how to implement migrators for

Release 0.4.1

13 Jun 11:11
Compare
Choose a tag to compare

Upgraded Microsoft.Data.SqlClient to version 5.1.4 and FluentMigrator.Runner to version 5.0.0 in #4

Release 0.4.0

19 Feb 14:21
7dbdadd
Compare
Choose a tag to compare
  • Changed the connection abstraction from IDbConnection to DbConnection in #3
  • Tweak to how existing connections to the database are dropped at the end or start of a new test suite

Release 0.3.0

08 Jan 15:44
Compare
Choose a tag to compare

Made creation, migration and removal of database asynchronous.

In prior versions, the database was created and migrated in the DatabaseFixture constructor and the database was removed in the dispose method.

In the new version the DatabaseFixture instead has two methods InitializeAsync and DisposeAsync to create and remove the database. These methods also happen to match the xUnit interface IAsyncLifetime, which the DatabaseFixture class should implement if you use xUnit for tests.