This is an automated email from the ASF dual-hosted git repository.

arvindsh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-muchos.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ff1a02  Switch unit tests to use nose2 (#421)
2ff1a02 is described below

commit 2ff1a02c0adbf55dd5cb4d95268512436d46cce1
Author: Arvind Shyamsundar <[email protected]>
AuthorDate: Tue Dec 21 08:33:12 2021 -0800

    Switch unit tests to use nose2 (#421)
    
    * Update unit tests to run on [nose2](https://github.com/nose-devs/nose2)
      which replaces the erstwhile nose (no longer maintained).
      nose2 is also compatible with recent Python 3.x releases
    
    * Pin the version of nose2 for stability in CI.
---
 CONTRIBUTING.md      | 2 +-
 lib/requirements.txt | 2 +-
 scripts/cibuild      | 8 +++++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index a1a2772..22df0f1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -27,7 +27,7 @@ Muchos has unit tests. To run them, first install required 
packages:
 ```
 The following command runs the unit tests:
 ```
-    nosetests -w lib/
+    nose2 -v -B
 ```
 
 ## Before you submit a PR
diff --git a/lib/requirements.txt b/lib/requirements.txt
index d17ac69..ef83403 100644
--- a/lib/requirements.txt
+++ b/lib/requirements.txt
@@ -1,4 +1,4 @@
 flake8==3.8.0
 ansible-core==2.11.3
 ansible-lint==5.1.2
-nose==1.3.7
+nose2==0.10.0
diff --git a/scripts/cibuild b/scripts/cibuild
index 51b1841..2d87164 100755
--- a/scripts/cibuild
+++ b/scripts/cibuild
@@ -1,9 +1,11 @@
 #!/usr/bin/env bash
 set -e
-echo "Running nose tests..."
-nosetests -w lib/
-echo "SUCCESS: All Nose tests completed."
+echo "Running nose2 tests..."
+cd lib
+nose2 -v -B
+echo "SUCCESS: All nose2 tests completed."
 echo "Running Ansible-lint..."
+cd ..
 ansible-lint -x no-changed-when,risky-file-permissions,unnamed-task,var-naming
 echo "SUCCESS: Ansible-lint completed."
 echo "Running flake8 to check Python code..."

Reply via email to