-
Notifications
You must be signed in to change notification settings - Fork 9
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
Document Process and Tips for Running Tests when Maintaining them #451
Comments
There's a lot of aspects to this issue (before the description was edited to its newer more focused goal):
|
This was referenced Sep 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NODE_APP_INSTANCE=dev
)Here's how I personally run Test Suite, which may be helpful:
(cd Examples/BookingSystem.AspNetCore.IdentityServer && dotnet run)
(cd Examples/BookingSystem.AspNetCore && dotnet run)
NODE_APP_INSTANCE=dev npm run start-broker
NODE_APP_INSTANCE=dev npm run start-tests -- packages/openactive-integration-tests/<path to test file>.js
And then, for quicker feedback, you can run tests in controlled mode, which removes the lengthy process of ingesting and sorting random opportunities by the Broker. To do this:
OpportunityCount
to 1 in FakeBookingSystem.cs (I believe there's an ev var for that)NODE_APP_INSTANCE=dev NODE_CONFIG='{"integrationTests": {"useRandomOpportunities": false}}' npm run start-tests -- packages/openactive-integration-tests/<path to test file>.js
The text was updated successfully, but these errors were encountered: