helperdiscord / petitio

An HTTP/S library designed to be simple, fast, and type-strong.
https://helperdiscord.github.io/petitio/
MIT License
44 stars 6 forks source link

test: use local tests #30

Closed Nytelife26 closed 3 years ago

Nytelife26 commented 3 years ago

This relates to...

Our test suites using external HTTP servers to operate.

Rationale

Prior to this, our tests were slow since they had to interface with the wider internet, and susceptible to failure if the external servers were down. This fixes that.

Our old testing suite took 8-12s. This takes 0.5-4s. Merging this will allow us to develop and commit faster.

Changes

  1. Tests now use local HTTP servers
  2. Tests now use the newly established KCS unit testing convention

Features

N/A.

Bug Fixes

N/A.

Breaking Changes and Deprecations

N/A.

Status

KEY: S = Skipped, x = complete

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.3.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: