UCL-INGI / LEPL1402

INGInious tasks for LEPL1402 at EPL ( UCLouvain )
4 stars 5 forks source link

feat($common) : allows to specify custom xpath rules for coverage 🚧 #28

Closed jy95 closed 3 years ago

jy95 commented 4 years ago

Hello LEPL1402,

For some exercises using JaCoCo (like Coverage), it may be useful to specify advanced xpath(s) for the report in XML to better compute what should be covered (or not), instead of relying on the "total" count : it is now possible with the new key coverage_xpaths in feedback_settings.yaml page :

For example :

has_feedback: true
quorum: 0.65
feedback_kind: JaCoCo
coverage_stats:
  - INSTRUCTION
  - BRANCH
coverage_xpaths:
  - xpath1
  - xpath2

If not specified, the used value will be the previously one used in the code ( ["./counter"] )

Checklist : ✔️ add tests in check_requirements.py ✔️ add code that doesn't break backwards ❌ add documentation about that in feedback_settings.yaml page 🚧 need to be tested in real life : since Inginious seems to have some problems with the java8scala environment, whatever the version I used (v5 or v6), cannot test myself 👎