Skip to content

Refactor tests #941

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

Merged
merged 48 commits into from
Feb 9, 2021
Merged

Refactor tests #941

merged 48 commits into from
Feb 9, 2021

Conversation

bart-degreed
Copy link
Contributor

@bart-degreed bart-degreed commented Feb 4, 2021

Fixes #715. It's probably easiest to review per commit.

With the new infrastructure in place and all integration tests using them, we can now run them in parallel.

Running all tests on my machine (before): 56 sec
Running all tests on my machine (after): 23 sec

That's 60% faster than before!

Also fixed an invalid comparison of primitive values (due to boxing) when using ?defaults=false query string parameter, which resulted in some defaults still being rendered.

Bart Koelman added 30 commits January 26, 2021 11:21
…ome duplication and fixed an equality bug.
…se it has a strong dependency on EmptyStartup from JsonApiDotNetCoreExamples project.
Copy link
Member

@maurei maurei left a comment

Choose a reason for hiding this comment

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

Left various comments throughout the commits

Bart Koelman added 4 commits February 6, 2021 01:56
…t, so they can share private models with integration tests for query strings. They are likely to evolve simultaneously, so I prefer not to make a copy of them.

Renamed Blog to LegacyBlog in preparation for refactoring to make query string tests run against private models. LegacyBlog is going away at the end.
…ges:

LegacyBlog -> Blog
	Title -> Title
	CompanyName -> PlatformName
	HasMany Articles -> Posts
	HasOne Owner -> Owner

Article -> BlogPost
	Caption -> Caption
	Url -> Url
	HasOne Author -> Author
	+ HasOne Reviewer
	HasManyThrough Tags -> Labels
	HasMany Revisions -> Comments
	HasOne Blog -> Parent

Tag -> Label
	Name -> Name
	Color -> Color
	HasManyThrough Articles -> Posts

Revision -> Comment
	+ Text
	PublishTime -> CreatedAt
	HasOne Author -> Author
	HasOne Article -> Parent

Author -> WebAccount
	FirstName/LastName -> UserName/DisplayName
	+ Password
	DateOfBirth -> DateOfBirth
	BusinessEmail -> EmailAddress
	LivingAddress -> Preferences
	HasMany Articles -> Posts

Address -> AccountPreferences
	+ UseDarkTheme
@bart-degreed bart-degreed requested a review from maurei February 6, 2021 01:05
@maurei maurei merged commit 115703f into master Feb 9, 2021
@maurei maurei deleted the refactor-tests branch February 9, 2021 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Update tests
2 participants