Skip to content

[tests] parameterize IncrementalBuildTest for all runtimes #10119

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonathanpeppers
Copy link
Member

Context: https://docs.nunit.org/2.5/testFixture.html

NUnit has had the ability to parameterize test classes for a while, it seems like this is pretty useful for running an entire test class for all three runtimes using primary constructors:

[TestFixture (AndroidRuntime.MonoVM)]
[TestFixture (AndroidRuntime.NativeAOT)]
[TestFixture (AndroidRuntime.CoreCLR)]
public class IncrementalBuildTest (AndroidRuntime runtime) : BaseTest
{
	readonly AndroidRuntime _runtime = runtime;

My IDE also formatted some of the C# code appropriately, so I left those changes in.

Context: https://docs.nunit.org/2.5/testFixture.html

NUnit has had the ability to parameterize test classes for a while, it
seems like this is pretty useful for running an entire test class for
all three runtimes using primary constructors:

	[TestFixture (AndroidRuntime.MonoVM)]
	[TestFixture (AndroidRuntime.NativeAOT)]
	[TestFixture (AndroidRuntime.CoreCLR)]
	public class IncrementalBuildTest (AndroidRuntime runtime) : BaseTest
	{
		readonly AndroidRuntime _runtime = runtime;

My IDE also formatted some of the C# code appropriately, so I left
those changes in.
@jonathanpeppers
Copy link
Member Author

I'm not sure I like how the tests show up:

image

They don't say what runtime it is...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant