Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump NTestDataBuilder from 1.0.2 to 2.0.0 #4584

Merged
merged 3 commits into from
Apr 27, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 6, 2021

Bumps NTestDataBuilder from 1.0.2 to 2.0.0.

Release notes

Sourced from NTestDataBuilder's releases.

2.0.0

  • Renamed project to TestStack.Dossier
  • Added anonymous value generation and equivalence classes

Blog post

Massive thanks to @​mwhelan who was a major contributor for this release.

Changelog

Sourced from NTestDataBuilder's changelog.

Breaking Changes

Version 3.3

The classes inheriting from FileDictionarySource have been marked as obsolete and will be removed in version 4. Instead you should use the new Words class, passing in the name of a file dictionary (either one of the built-in ones or one that you create). All the built-in ones are listed in the FromDictionary class where the constants match the filename embedded into Dossier. So, for example, instead of using the GeoCountrySource class you would instead use Words(FromDictionary.GeoCountry).

All of the file dictionaries have been added to the AnonymousValueFixture class as equivalence class extension methods. So, for example, in your builder class you can now call:

Any.InternetURL();
Any.LoremIpsum();
Any.ColourName();

Picking functionality has been added which allows you to select items from a list according to different strategies. Currently, two strategies have been added, RandomItemFrom and RepeatingSequenceFrom:

var names = new Words(FromDictionary.PersonNameFirst).Data;
var days = new List<string> {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"};
var customers = Builder<Customer>
	.CreateListOfSize(15)
	.All()
	.Set(x => x.Name, Pick.RandomItemFrom(names).Next)
	.Set(x => x.Day, Pick.RepeatingSequenceFrom(days).Next)
	.BuildList();

Version 3.0

The signature of IAnonymousValueSupplier has changed from:

public interface IAnonymousValueSupplier
{
    bool CanSupplyValue(Type type, string propertyName);
    TValue GenerateAnonymousValue<TObject, TValue>(AnonymousValueFixture any, string propertyName);
}

To:

public interface IAnonymousValueSupplier
{
    bool CanSupplyValue(Type type, string propertyName);
    object GenerateAnonymousValue(AnonymousValueFixture any, Type type, string propertyName);
}

... (truncated)

Commits
  • 902f9dc Fixing problem with nuget package removal
  • b3ceca8 Updated readme - adding "TestStack." before "Dossier"
  • bc1c22b Merge pull request #22 from robdmoore/teststack.dossier
  • 2ff3790 Merge pull request #21 from robdmoore/dossier-rename
  • aa325b6 Updated nuspec for Dossier rename
  • 86eb37d Updated breaking changes for the rename to Dossier
  • b2ce172 Reverted back to xunit 1.9.2 so existing test runners work - don't wan to upd...
  • 1bc00bd renamed NTestDataBuilder to TestStack.Dossier
  • 260c67d Merge pull request #20 from robdmoore/tweaks
  • dab73c9 Added ability to convert from builder proxy object to a ListBuilder instance ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot force-pushed the dependabot/nuget/NTestDataBuilder-2.0.0 branch from ff9b0dc to a97dbaa Compare April 9, 2021 03:52
NTestDataBuilder was renamed to TestStack.Dossier, this is the new
package to use
@bdukes
Copy link
Contributor

bdukes commented Apr 12, 2021

I looked at the build errors from this PR, and it looks like this package was renamed. I've incorporated the new package in this PR and it all looks good to me now.

@bdukes bdukes added this to the 9.9.2 milestone Apr 12, 2021
Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch 😄

@mitchelsellers mitchelsellers merged commit 857cf0d into develop Apr 27, 2021
@dependabot dependabot bot deleted the dependabot/nuget/NTestDataBuilder-2.0.0 branch April 27, 2021 19:16
@valadas valadas modified the milestones: 9.9.2, 9.10.0 Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Platform > Tests .NET Pull requests that update .net code Type: Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants