Download the PHP package simonvomeyser/laravel-automatic-tests without Composer

On this page you can find all versions of the php package simonvomeyser/laravel-automatic-tests. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-automatic-tests

Automatic Tests for Static Pages

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A package to quickly and automatically test all static, internal links in your Laravel app. Working with PHPUnit or PEST. 🎉

There are a many options, but the most simple test is:

Installation

There are no configs to be published since all configuration can be made via fluid methods.

Usage

Without any configuration, you can use this package...

with the PEST framework

with PHPUnit

Configuration

There are quite some ways to configure the default behaviour, all fluid methods can also be used together.

Ignoring query params and anchor links

Since some websites use a lot of query links (example.com/search?q=lorem) or a lot of links to pages with page anchors (example.com/search#section-2) it is possible to ignore these variations and check the path (in this example example.com/search) only once.

Starting from a different page

You can of course start the crawling from a different page, the default is /, what might be the frontpage on most websites.

Skipping the default assertion, access found uris + responses

To keep the api as lean as possible, the default assertion checks, that no 4xx or 5xx errors are returned from any given url.

To disable this behavior, you can skip the assertion and handle all uris and responses as you like.

Adding custom assertions

While doing all custom assertions after finding all URIs is possible, you may skip the fuzz and add your custom assertions via addAssertion right away.

Defining a maximum of pages and crawls

Since automatic crawling can munch a lot of memory, you may define a maximum of pages/uris or a maximum crawl depth (1 meaning only the url you start from and the pages found there will be handled)

A note on passing the testcase

This package needs the current testcase to start it's crawling - you actually would need to pass the Test itself to new up the StaticPagesTester like so:

Since this is no pretty API, the package tries some magic with the create() method to find the calling testcase.

Keep that in mind if you want to use the StaticPagesTester elsewhere, not from a test.

Roadmap

I have a lot of ideas for that package, but we all have little time, and I wrote this mostly for myself with only basic features. If somebody is interested let me know, we could discuss a few ideas like

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Testing

To test this testing package, run the following test command (#testception)


All versions of laravel-automatic-tests with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
spatie/laravel-package-tools Version ^1.0.0
symfony/dom-crawler Version ^5.0|^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package simonvomeyser/laravel-automatic-tests contains the following files

Loading the files please wait ....