CLIMATE-851 - Have nosetests log to STDOUT

Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/5cfb3bed
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/5cfb3bed
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/5cfb3bed

Branch: refs/heads/master
Commit: 5cfb3bed916a5337cc5395177222d21d1284f9dc
Parents: 6f83c39
Author: Ibrahim Jarif <jarifibra...@gmail.com>
Authored: Sat Aug 13 12:37:40 2016 +0530
Committer: Ibrahim Jarif <jarifibra...@gmail.com>
Committed: Sat Aug 13 14:06:46 2016 +0530

----------------------------------------------------------------------
 .noserc     | 23 +++++++++++++++++++++++
 .travis.yml |  6 +++---
 test.sh     |  6 +++++-
 3 files changed, 31 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/5cfb3bed/.noserc
----------------------------------------------------------------------
diff --git a/.noserc b/.noserc
new file mode 100644
index 0000000..59b8a69
--- /dev/null
+++ b/.noserc
@@ -0,0 +1,23 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License")# you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+[nosetests]
+where=ocw/tests/
+verbosity=3
+with-coverage=1
+cover-package=ocw
+nocapture=1

http://git-wip-us.apache.org/repos/asf/climate/blob/5cfb3bed/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index d8acac9..360dd7b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,7 @@ install:
   - source easy-ocw/install-ubuntu.sh
   - pip install python-coveralls
 script:
-   - chmod a+x test.sh
-   - ./test.sh
-after_script:
+  - chmod a+x test.sh
+  - ./test.sh
+after_success:
   - coveralls

http://git-wip-us.apache.org/repos/asf/climate/blob/5cfb3bed/test.sh
----------------------------------------------------------------------
diff --git a/test.sh b/test.sh
index 24ed0fe..0ea488d 100755
--- a/test.sh
+++ b/test.sh
@@ -21,7 +21,11 @@ echo "---------------- Running Smoke Tests ---------------"
 python test_smoke.py
 echo "---------------- Smoke Tests Successfully Completed---------------"
 echo ""
+
+# nosetests config file should be in home directory
+cp .noserc $HOME/.noserc
+
 echo "---------------- Running Unit Tests ---------------"
-nosetests -v --with-coverage --cover-package=ocw --nocapture
+nosetests
 echo "---------------- All Tests successfully completed ---------------"
 

Reply via email to