Comments (7)
Made a start by copying one test file from topographica, but it's just a placeholder for now.
from param.
Note that topographica's testing also generates a coverage report.
from param.
Seems like coveralls.io might be ok for showing coverage (https://coveralls.io/r/ioam/param; need to tweak which files it considers).
from param.
Cool. I can't quite parse the output; it seems to consider the tests to have good coverage (of themselves?)
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
from param.
I've moved all the relevant topographica unit tests over to param. I also ported the appropriate doctests in topographica to suitable unit tests. If there is anything else here you want ported, please tell me.
The only test that I can see that has anything param specific is this one as it tests param.Filename
. Unfortunately, it is mixed with Topographica specific stuff (namely save_snapshot
and load_snapshot
).
I haven't touched the paramtk tests but that is an issue for a different repository...
from param.
Thanks so much for doing that! What's the motivation for porting doctests to unit tests?
from param.
Really, it is just a matter of preference!
I don't mind doctests inside actual docstrings but I don't like having files containing doctests when we could just have unit tests instead. We have far more unit tests than doctest files so I think we should aim for unit tests + doctests in docstrings.
from param.
Related Issues (20)
- watcher doesn't work with __len__
- Easier subclassing of Parameter HOT 5
- Warnings not displaying the right frame
- Pickle Serialization doesn't work for param.Parameterized with @param.depends function decorators HOT 2
- Cloudpickle compatibility HOT 3
- Subclassing a Parameterized class and changing the class parameters of list / dict does not work
- Callback called before a method that is depended upon
- Depending on the method of a sub parameter object is broken
- Fate of `name`? HOT 2
- Callbacks not triggered when value updated at the class level before being set on an instance HOT 2
- Add API to access watchers HOT 1
- Support async `on_init` methods
- param.pprint breaks if HoloViews is imported HOT 5
- Selector regression in an inheritance context? HOT 3
- Add official support to pathlib.Path objects to param.Path
- Deprecate `Path.search_paths`
- Add `param.watch` function/decorator
- `ListSelector`: regression when `check_on_set=False` HOT 2
- Automatically serialize dataclass / pydantic models into `param.Parameterized`? HOT 1
- Setting a `Parameter` value in `__init__` before calling `super().__init__` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from param.