Run Pytest on Glue

194 Views Asked by At

How do I invoke pytest on aws glue ? something like below

python -m pytest -m reg -ra --myxml=./myout.xml

I couldn't find much info on how to pass these markers while invoking pytest. Only option I see on aws glue is to pass .py file. I am also able to pass double hyphen parameter myxml but not sure for single hyphen one like -m and -ra. I tried using python shell as well as Spark.

1

There are 1 best solutions below

3
Anmol Parida On
 pytest -rA -m reg --myxml=./myout.xml