Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

marcelotrevisani/pytest-vtk

Repository files navigation

pytest-vtk

See Build Status on Travis CI

See Build Status on AppVeyor

image

It's a plugin for pytest to easily test the VTK objects from VTK library


This Pytest plugin was generated with Cookiecutter along with @hackebrot's Cookiecutter-pytest-plugin template.

Features

Support for testing vtk objects such as:

  • vtkDoubleArray
  • vtkFloatArray
  • vtkIntArray
  • vtkIdTypeArray
  • vtkLongArray
  • vtkShortArray
  • vtkUnsignedCharArray
  • vtkUnsignedIntArray
  • vtkUnsignedLongArray
  • vtkUnsignedLongLongArray
  • vtkUnsignedShortArray
  • vtkPoints
  • vtkPointData
  • vtkCharArray
  • vtkStringArray
  • vtkStructuredGrid
  • vtkCellArray

To Do ----* Support to test: * vtkUnstructuredGrid * vtkPolyData * vtkRectilinearGrid * vtkUnicodeStringArray * vtkVariantArray * vtkBitArray * vtkSignedCharArray * vtkImageData * Support for image test * Add pytest-vtk package in conda-forge and also in Pypi

Requirements

  • vtk >= 7.0.0
  • numpy
  • pytest >= 3.1.1

Installation

(Not implemented yet) You can install "pytest-vtk" via pip from PyPI:

$ pip install pytest-vtk

Usage

Just call the assert_vtk function and pass two VTK objects which will be compared.

Example:

assert_vtk(vtk_object1, vtk_object2)

The pytest-vtl plugin will raise an error if these two objects are different and also will show the differences.

Contributing

Contributions are very welcome.

License

Distributed under the terms of the MIT license, "pytest-vtk" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

About

Plugin for PyTest to easily test VTK objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages