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

cloudpack/rorschach-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example for cloudpack/rorschach

Run API server and API test with cloudpack/rorschach.

About Rorschach

Look this !

Install

Install package.

composer install

Usage

Run PHP built-in server.

php -S localhost:8888 server.php

Run API test with rorschach.

composer exec rorschach inspect -- --file='test-api.yml' --bind='{"port": 8888}' --saikou

Expect result

GET /items/1
	[has]	PASSED.	code
	[has]	PASSED.	name
	[has]	PASSED.	size
	[value]	PASSED.	MBA
GET /users
	[code]	PASSED.	200
	[has]	PASSED.	.id
	[has]	PASSED.	.name
	[type]	PASSED.	integer
	[type]	PASSED.	string
	[value]	PASSED.	1
	[value]	PASSED.	Michel
GET /redirect
	[code]	PASSED.	302
GET /redirect
	[code]	PASSED.	200
Congrats!!🍻 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages