Add support for parameterized tests

Open
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
testing

Research direction

Start by examining the pytest-arraydiff array_compare decorator and how pytest parametrized tests are collected. Determine whether decorator layering or direct parametrization support is the intended design, then add coverage showing that parameterized cases compare against their references and run the plugin's test suite.

Written by the indexing model from the issue text.

Description

enhancement

It would be great to be able to be able to use pytest-arraydiff in conjunction with parametrized tests. If it were possible to layer the decorators, that would be optimal

@pytest.mark.array_compare
@pytest.mark.parametrize(...)
def test(...):
    return ...

Alternatively if array_compare supported the parametrization that would be good as well.

Dominant language
Python
Stars
27
Forks
21
Avg merge
6h 39m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from astropy/pytest-arraydiff

All issues in astropy/pytest-arraydiff

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.