mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-31 05:06:41 +00:00
WIP: test1
This commit is contained in:
parent
e60f907720
commit
43a3b71e29
|
@ -150,9 +150,9 @@
|
||||||
};
|
};
|
||||||
testScript = ''
|
testScript = ''
|
||||||
start_all()
|
start_all()
|
||||||
machine.succeed("cd ${vmtest-src-dir} && coverage run --data-file=/tmp/.coverage -m pytest -p no:cacheprovider -v >&2")
|
machine.succeed("cd ${vmtest-src-dir} && coverage run --data-file=/tmp/.coverage -m pytest -p no:cacheprovider tests/test_binds.py -v >&2")
|
||||||
machine.succeed("cd ${vmtest-src-dir} && coverage xml --data-file=/tmp/.coverage -o /tmp/coverage.xml >&2")
|
machine.succeed("cd ${vmtest-src-dir} && coverage xml --data-file=/tmp/.coverage -o /tmp/coverage.xml >&2")
|
||||||
machine.succeed("sed 's/<source>${pkgs.lib.strings.escapeShellArg self.outPath}<\/source>/<source>.<\/source>/g' /tmp/coverage.xml")
|
machine.succeed("sed -E 's|<source>${pkgs.lib.strings.escapeRegex self.outPath}</source>|<source>.</source>|g' /tmp/coverage.xml")
|
||||||
machine.copy_from_vm("/tmp/coverage.xml", ".")
|
machine.copy_from_vm("/tmp/coverage.xml", ".")
|
||||||
machine.succeed("coverage report --rcfile=.coveragerc --data-file=/tmp/.coverage >&2")
|
machine.succeed("coverage report --rcfile=.coveragerc --data-file=/tmp/.coverage >&2")
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue