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

docs: Include tips for running alongside Test Suite when maintaining #216

Merged
merged 5 commits into from
Mar 7, 2024

Conversation

lukehesluke
Copy link
Contributor

Closes #214

@lukehesluke lukehesluke marked this pull request as draft September 20, 2023 15:40
Comment on lines -9 to -17
1. In Visual Studio, run the BookingSystem.AspNetCore project

When it's finished building, it will open a page in your browser with a randomly assigned port e.g. http://localhost:55603/. Make note of this port.

Head to `http://localhost:{PORT}/openactive` to check that the project is running correctly. You should see an Open Data landing page.
2. Head to BookingSystem.AspNetCore project options and add an env var using the port you made note of earlier:

`ApplicationHostBaseUrl: http://localhost:{PORT}`
3. Now, re-run the project. You're good to go 👍
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now obsolete.


`ApplicationHostBaseUrl: http://localhost:{PORT}`
3. Now, re-run the project. You're good to go 👍
See the [project contribution documentation](/CONTRIBUTING.md) for details on how to run BookingSystem.AspNetCore locally.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've put this info in the project-wide CONTRIBUTING because 1). it also incorporates running of IdentityServer (in most cases) 2). to allow it to more easily tie in with the discussion about Test Suite

```
* **Test Suite**: To run this locally, follow the guidelines in its [project's contribution documentation](https://github.com/openactive/openactive-test-suite/blob/master/CONTRIBUTING.md).

### Optimizing for controlled mode
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This heading is referenced by openactive/openactive-test-suite#586


## Pull Request Process

Changes to [OpenActive.Server.Net](.) should be tested with the [Test Suite](#test-suite) before a Pull Request is submitted, to ensure that the reference implementation remains conformant. If changes are also required to Test Suite in order to properly test the new changes, then `coverage/*` branches should be used for both repositories, as documented in Test Suite's [Pull Request Process](https://github.com/openactive/openactive-test-suite/blob/master/CONTRIBUTING.md#pull-request-process) documentation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @civsiv . Totally agreed. I wasn't sure how to do it so I created a new draft issue for now: https://github.com/orgs/openactive/projects/17/views/8?pane=issue&itemId=39372185 and linked it to the issue for that Gitbook PR

@lukehesluke lukehesluke merged commit f01b86e into master Mar 7, 2024
5 of 21 checks passed
@lukehesluke lukehesluke deleted the feature/running-tests-when-maintaining branch March 7, 2024 12:59
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.

Tips for running locally, including optimizing for controlled mode
2 participants