You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/05/05 18:21:42 UTC

[GitHub] [beam] udim commented on a change in pull request #14716: [BEAM-3713] Move dataflow:validatesContainerTests from nosetest to pytest

udim commented on a change in pull request #14716:
URL: https://github.com/apache/beam/pull/14716#discussion_r626793908



##########
File path: sdks/python/container/run_validatescontainer.sh
##########
@@ -118,14 +118,13 @@ SDK_LOCATION=$2
 
 # Run ValidatesRunner tests on Google Cloud Dataflow service
 echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
-python setup.py nosetests \
-  --attr ValidatesContainer \
-  --nologcapture \
-  --processes=1 \
-  --process-timeout=900 \
-  --with-xunitmp \
-  --xunitmp-file=$XUNIT_FILE \
-  --ignore-files '.*py3\d?\.py$' \
+pytest -o junit_suite_name=$IMAGE_NAME \
+  -m="it_validatescontainer" \
+  --no-print-logs \

Review comment:
       I was also trying out `--log-cli-level=INFO` a few weeks back, if you could add that. I liked that it printed out the test names and pass/fail/skip status. (normally it also logs test output, but with --numprocesses=N that's not the case so it's not spammy)

##########
File path: sdks/python/container/run_validatescontainer.sh
##########
@@ -118,14 +118,13 @@ SDK_LOCATION=$2
 
 # Run ValidatesRunner tests on Google Cloud Dataflow service
 echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
-python setup.py nosetests \
-  --attr ValidatesContainer \
-  --nologcapture \
-  --processes=1 \
-  --process-timeout=900 \
-  --with-xunitmp \
-  --xunitmp-file=$XUNIT_FILE \
-  --ignore-files '.*py3\d?\.py$' \
+pytest -o junit_suite_name=$IMAGE_NAME \
+  -m="it_validatescontainer" \
+  --no-print-logs \

Review comment:
       This option is removed in future pytest versions. The replacement is `--show-capture=no`.
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org