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

Major refactoring for CI workflows #69

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Major refactoring for CI workflows #69

merged 4 commits into from
Dec 13, 2024

Conversation

NicoFgrx
Copy link
Member

This PR was initially intended to implement #29 but we took the opportunity to do a (major) refactor of the CI tests.

The Python functional tests are now self-supporting, which allows us to segment the functional tests and the E2E tests (front-end).

Main refactor are:

  • composite action in .github/workflows/setup-testing
  • extract e2e tests from .github/workflows/ci.yml into .github/workflows/e2e.yml
  • all utils functions in test/utils.py
  • all tests of /api/v1/challenges in test/test_api_challenge.py (plugin additional params)
  • all tests of /api/v1/plugin/ctfd-chall-manager/admin/instance in test/test_api_admin_instance.py
  • all tests of /api/v1/plugin/ctfd-chall-manager/instance in test/test_api_instance.py
  • all test of /api/v1/plugin/ctfd-chall-manager/mana in test/test_api_mana.py

This separation allows us to be much more modular in our tests and to be future-proof.

@NicoFgrx NicoFgrx requested a review from pandatix December 13, 2024 18:07
Copy link
Member

@pandatix pandatix left a comment

Choose a reason for hiding this comment

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

Good job ! Now let's focus on concluding alpha :p

@pandatix pandatix merged commit 18b7551 into main Dec 13, 2024
6 checks passed
@pandatix pandatix deleted the impr/improve-tests branch December 13, 2024 23:33
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.

2 participants