Skip to content
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

Provide a module for common tasks when testing Zonemaster::Backend #1008

Merged
8 commits merged into from May 18, 2022
Merged

Provide a module for common tasks when testing Zonemaster::Backend #1008

8 commits merged into from May 18, 2022

Conversation

ghost
Copy link

@ghost ghost commented May 16, 2022

Purpose

Unit testing Zonemaster::Backend might require to regularly create a new testing environment with clean database for instance. The goal is to provide a simple module that can be loaded to access common methods while testing the Backend.

Context

n/a

Changes

  • new TestUtil.pm module
  • refactor some tests to use this new module

How to test this PR

Tests should pass.

@ghost ghost added this to the v2022.1 milestone May 16, 2022
@ghost ghost requested review from mattias-p, matsduf and hannaeko May 16, 2022 11:41
Copy link
Member

@mattias-p mattias-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I like this. But I have some suggestions.

t/lifecycle.t Outdated Show resolved Hide resolved
t/idn.t Outdated Show resolved Hide resolved
t/TestUtil.pm Show resolved Hide resolved
t/TestUtil.pm Outdated Show resolved Hide resolved
@mattias-p
Copy link
Member

mattias-p commented May 18, 2022

Travis fails because of a bug I introduced in zonemaster/zonemaster-engine#1045. I've created zonemaster/zonemaster-engine#1068 to fix it.

@ghost ghost merged commit 2693035 into zonemaster:develop May 18, 2022
@ghost ghost deleted the testing-module branch December 23, 2022 09:58
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants