|
From: <aa-...@us...> - 2022-10-21 01:31:17
|
Revision: 9142
http://sourceforge.net/p/docutils/code/9142
Author: aa-turner
Date: 2022-10-21 01:31:15 +0000 (Fri, 21 Oct 2022)
Log Message:
-----------
Removed ``test/coverage.sh``, recommend coverage.py
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
Removed Paths:
-------------
trunk/docutils/test/coverage.sh
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2022-10-21 00:59:41 UTC (rev 9141)
+++ trunk/docutils/HISTORY.txt 2022-10-21 01:31:15 UTC (rev 9142)
@@ -19,7 +19,11 @@
- Support Ukrainian. Patch by Dmytro Kazanzhy.
+* Removed test/coverage.sh, use the coverage.py_ project instead,
+ ``coverage run test/alltests.py`` and ``coverage report``.
+.. _coverage.py: https://pypi.org/project/coverage/
+
Release 0.19 (2022-07-05)
=========================
Deleted: trunk/docutils/test/coverage.sh
===================================================================
--- trunk/docutils/test/coverage.sh 2022-10-21 00:59:41 UTC (rev 9141)
+++ trunk/docutils/test/coverage.sh 2022-10-21 01:31:15 UTC (rev 9142)
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-# $Id$
-# Author: Lea Wiemann <LeW...@gm...>
-# Copyright: This script has been placed in the public domain.
-
-# Usage: ./coverage.sh [project, [module]]
-
-set -e
-# Resolve all symlinks in current path.
-cd -P .
-proj="${PWD##*/}"
-if test "$proj" == test; then
- cd ..
- proj="${PWD##*/}"
-fi
-if test "$1"; then
- proj="$1"
-fi
-module="${2:-alltests.py}"
-module="${module#test/}"
-echo "Performing code coverage test for project \"$proj\", test module \"$module\"..."
-echo
-echo "Please be patient; coverage tracking slows test execution down by more"
-echo "than factor 10."
-echo
-cd test
-rm -rf cover
-mkdir -p cover
-python -u -m trace --count --coverdir=cover --missing "$module"
-cd ..
-echo
-echo
-echo Uncovered lines
-echo ===============
-echo
-(
- find "$proj/" -name \*.py | while read i; do
- i="${i%.py}"
- test -f test/cover/"${i//\//.}".cover -o "${i##*/}" == Template || echo "${i//\//.}" "`cat "$i.py" | wc -l`"
- done
- cd test/cover
- find . \( -name . -o ! -name "$proj".\* -exec rm {} \; \)
- for i in *.cover; do
- sed 's/^>>>>>> \(.*"""\)/ \1/' < "$i" > "${i%.cover}"
- rm "$i"
- done
- for i in *; do echo -n "$i "; grep -c '^>>>>>> ' "$i" || true; done
-) | grep -v ' 0$' | sort -nk 2
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|