Skip to content

Code Coverage API Spec

Pascal edited this page Mar 29, 2023 · 7 revisions

To retrieve files:

  1. Get Commit: from here:
Screen Shot 2023-03-17 at 11 17 50 AM
  1. Then make requests like this: https://raw.githubusercontent.com/ExaWorks/psij-python/d3363c04175bc1644db2ee48698e3597adc231d2/Makefile That will give you the file as it was at that commit

To get actual coverage info: git clone [email protected]:ExaWorks/psij-python.git

  • cd psij-python/
  • pip install -r requirements-tests.txt
  • make coverage-tests

that makes coverage.xml

Sample API for FE to BE.

Screen Shot 2023-03-29 at 11 14 02 AM

{ "tree": { "open": true, "contents": [ { "folder": { "open": true, "contents": [] } } ] }, "rightSide": [ { "code": " This allows running things like make tests ---k local" to pass "-k local" as args to pytest in the test target", "status": "white" }, { "code": "ifeq (tests, $(firstword $(MAKECMDGOALS))) TESTARGS := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS)) $(eval $(TESTARGS):;@true) endif", "status": "green" } ] }

Clone this wiki locally