Skip to content

vincenthornikx/migration-url-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Url Migration Tester

It can be very frustrating to check all the urls when you have migrated a website. This tool will help you make it easier.

Installation

We are not on npmjs.org, so you'll have to do this locally.

Install dependencies

# enter src directory
cd src

# install dependencies
npm install

Install as a package

# install as a linked package
cd src
sudo npm link

Run

cd src
node bin/index.js run [--max-failures=<N>] [--max-tests=<N>] [--concurrency=<N>] [-v|-vv|-vvv]

If you linked

# run from where your config directory is
url-tester run [--max-failures=<N>] [--max-tests=<N>] [--concurrency=<N>] [-v|-vv|-vvv]

Configuration

Example configuration

profiles:
  - name: example_name
    enabled: 1
    baseUrl: https://www.example.com/
    testUrl: https://new.example.com/
    urls:
      - type: file
        format: csv
        url: config/urls/example_com.csv
      - type: url
        format: sitemap
        url: https://www.example.com/sitemap.xml
    rewrites:
      - url: config/rewrites/example_com.csv

About

test your urls when you migrate your platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published