Hi! We are creating a contract testing solution, a...
# pact-net
m
Hi! We are creating a contract testing solution, and im wondering how to create a class structure for this kind of project. We want to cover at least 16 happy path endpoints and decided to do it as presented on screen (one test class per endpoint), but we struggled with two issues: • When every test class inherited base class (where in base class pactbuilder was generated) with disabled test parallelization - every test class generated its own pact file, what caused pushing one pact file to our pact repository • When we used inheritance on IClassFixture<TestSetup> we encountered a the same problem. • We used a collection with ICollectionFixture<TestSetup> inheritance, but we werent able to turn parallelization off in Xunit (perhaps there is a possibility, but i did not found anything). The only working way we found is to create all tests under one test class. My question is - how you guys create a class tree / clean architecture for your contract test projects in .NET. I'd be thankful for the valuable responses.