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

ci(tests): add test framework #1603

Merged
merged 2 commits into from
Mar 24, 2024
Merged

Conversation

ReenigneArcher
Copy link
Member

@ReenigneArcher ReenigneArcher commented Sep 5, 2023

Description

This PR adds a test framework and initial unit tests. Replaces #1323.

Tests are run in all CI builds (except flatpak right now as it's failing to build). Doc Tests are skipped on macOS (due to dependencies relying on homebrew boost), but are enabled in the Macports build.

Other updates:

  • Doxyfile was updated to latest version
  • License corrected in ArchLinux PKGBUILD spec
  • Moved flatpak shared modules to a submodule

Todo:

  • Fix flatpak build
  • Determine how to handle cmake components
  • Add coverage report
  • Upload coverage to codecov
  • Disable optimizations for test executable
  • Make homebrew spec run tests
  • Generate coverage report for Portfile or Homebrew build, and upload
  • Add fixtures for nvidia, amd, etc... automatically skipping tests that rely on those fixtures when conditions are incorrect (depends on refactor(video): move encoder declarations to header #2185)
  • Add more initial tests

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

Branch Updates

LizardByte requires that branches be up-to-date before merging. This means that after any PR is merged, this branch
must be updated before it can be merged. You must also
Allow edits from maintainers.

  • I want maintainers to keep my branch updated

@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch 12 times, most recently from 7cf50b9 to 43df3dc Compare September 5, 2023 20:44
@ReenigneArcher ReenigneArcher added the help wanted Extra attention is needed label Sep 5, 2023
tests/CMakeLists.txt Outdated Show resolved Hide resolved
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch 3 times, most recently from 6e00c37 to eab16f8 Compare September 6, 2023 12:33
@ReenigneArcher ReenigneArcher self-assigned this Sep 8, 2023
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch from eab16f8 to 040c3a6 Compare February 5, 2024 01:01
@ReenigneArcher ReenigneArcher reopened this Feb 5, 2024
@LizardByte LizardByte deleted a comment from LizardByte-bot Feb 5, 2024
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch 6 times, most recently from 0030976 to dfaa57e Compare February 5, 2024 15:52
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch 15 times, most recently from 3f96534 to dfe8f4d Compare March 19, 2024 02:32
@ReenigneArcher ReenigneArcher requested a review from cgutman March 19, 2024 02:50
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch from dfe8f4d to b802183 Compare March 24, 2024 21:44
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch 3 times, most recently from 0666bb2 to 95cc825 Compare March 24, 2024 22:24
@ReenigneArcher ReenigneArcher force-pushed the ci(tests)-add-test-framework branch from 95cc825 to 40bf372 Compare March 24, 2024 23:06
@ReenigneArcher ReenigneArcher merged commit 89e8b96 into nightly Mar 24, 2024
51 checks passed
@ReenigneArcher ReenigneArcher deleted the ci(tests)-add-test-framework branch March 24, 2024 23:52
KuleRucket pushed a commit to KuleRucket/Sunshine that referenced this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants