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

Hardcoded compilation to version 2.2. #1901

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

julien-sebire
Copy link
Member

This PR allows test compilation to QTI Compact 2.2.
Thorough tests have been done on the branch itself, along with the counterpart in extension-tao-itemqti.

This PR requires oat-sa/extension-tao-itemqti#1516

Copy link
Contributor

Choose a reason for hiding this comment

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

missing bump version commit

@@ -476,7 +476,7 @@ protected function compactTest()
$resolver = new taoQtiTest_helpers_ItemResolver(Service::singleton());
$originalDoc = $testService->getDoc($test);

$compiledDoc = XmlCompactDocument::createFromXmlAssessmentTestDocument($originalDoc, $resolver, $resolver);
$compiledDoc = XmlCompactDocument::createFromXmlAssessmentTestDocument($originalDoc, $resolver, $resolver, '2.2');

Choose a reason for hiding this comment

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

i would go for a constant that will describe the new added value

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a constant.

@mike-ionut-mihai-sandu-tao
Copy link
Contributor

also please update the test in such way it will reflect the change

@julien-sebire
Copy link
Member Author

also please update the test in such way it will reflect the change

I added tests for the branching, precondition and linearity for new versions of QTI Compact.
Can you point me to any other test impacted? I couldn't find any test checking the result of compilation. Maybe I'm not looking in the right place.
Are integration tests run again in CI?

@siwane siwane removed their request for review October 8, 2020 14:09
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.

3 participants