New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unified testing via toolz
#9
Comments
As mentioned in #18, functions like |
Some testing systems, like py.test, might support these features even with normal |
@minrk had suggestions about sharing test suites
|
Monkeypatching FTW! This may be the best and cleanest use of monkey patching that I've seen. I like it. How would |
|
Slick. I've been getting by with moving the tests from #!/bin/bash
for f in ../toolz/toolz/tests/test*py
do
if [[ $f == *test_utils* ]]
then
continue
fi
newf=`echo $f | sed 's/...toolz.toolz/cytoolz/g'`
sed -e 's/toolz/cytoolz/g' -e 's/itercytoolz/itertoolz/' \
-e 's/dictcytoolz/dicttoolz/g' -e 's/funccytoolz/functoolz/g' \
$f > $newf
echo $f $newf
done This has actually worked pretty well for me. Although this still results in tests being defined in two places, I have found that keeping So, I don't know that we should pursue unified testing. To be fair, though, I think we should make it easy for anybody to move tests from Ideally, I would like the command |
We could look at writing the tests in the structure of the CPython tests in modules like tests/test_operator.py that need to test both the c and python implementations. |
Closing. We have been getting by with |
In the interest of development speed, the tests from
toolz
were basically just copied over tocytoolz
. This is not easily sustainable. We would like all toolz-related tests to reside intoolz
. Moreover, we would like a way to run the tests for toolz such astoolz.tests.run()
, and to provide an optional toolz-like package on which to run the tests such astoolz.tests.run(cytoolz)
.This issue does not cover testing CyToolz C API, which I regard as very low priority at the moment.
The text was updated successfully, but these errors were encountered: