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

[5.0] Initial unit tests for context creation #1288

Open
wants to merge 3 commits into
base: opentk5.0
Choose a base branch
from

Conversation

deccer
Copy link
Contributor

@deccer deccer commented May 22, 2021

Purpose of this PR

We should not just unit-test if Vector3s can be added together, but also the rest of the library.

This PR will introduces a new UnitTest project to contain all sorts of tests. In this instance GameWindow creation with various GL version/profiles is tested.

The idea behind is also to test if the Generator is spitting out the right function calls. As we've seen with OTK5-pre4 its not the case and could be could with such tests :)

GL 2.0, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6 are tested. With ContextProfiles All/Core and Compatibility, except GL 2.0-3.1 only Profile.All is tested there
…hub Actions

On those platforms the "CI" environment variable is present and set to "true". Unit tests in the OpenTK.UnitTests project will only run on your local machine as it most likely provides a way of creating actual OpenGL contexts - unlike the ci platforms
@NogginBops NogginBops changed the title [5.0] initial unit tests for context creation [5.0] Initial unit tests for context creation May 25, 2021
@NogginBops NogginBops force-pushed the opentk5.0 branch 2 times, most recently from 416a63a to b57b01c Compare October 28, 2022 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants