Skip to content

Run CI for Moodle up to 4.3.#8

Open
lucaboesch wants to merge 1 commit intotimhunt:mainfrom
lucaboesch:41behat
Open

Run CI for Moodle up to 4.3.#8
lucaboesch wants to merge 1 commit intotimhunt:mainfrom
lucaboesch:41behat

Conversation

@lucaboesch
Copy link
Contributor

This adds the Moodle plugin CI tests for 4.2 and 4.3, too.

@timhunt
Copy link
Owner

timhunt commented Jan 8, 2024

To run moodle-plugin-ci, we are using server resource provided to us for free. I think we should not abuse that too much.

Also, ever CI run burns some energy, and the environment is in enough of a mess.

Therefore, I think we should not do so many runs. Normally, one run for each supported Moodle version is enough, and then distribute the PHP versions and DB types between those.

Also, please do not add PHPdoc to test_... methods. And never add @throws annotations.

@lucaboesch
Copy link
Contributor Author

Fair enough, I'll shorten that down.
@Covers has to be added, else-wise we get a warning or error.
I can remove the @throws.

@timhunt
Copy link
Owner

timhunt commented Jan 8, 2024

@Covers \availability_quizquestion\question_list_fetcher is already present on the class. Generally, class -> class is the best granularity to specify coverage information (although there are exceptions). Your latest changes adds an unwanted blank line.

@lucaboesch
Copy link
Contributor Author

That is indeed better. The @Covers wasn't needed at the function level.
I also removed the extra empty line.
Note that in regards to earlier in the day when i complained something might not work I found that I was on an older code base.
Might be worth so to increase the Plugin version number and add a new release to Moodle Plugin database, who knows.

Best,
Luca

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