Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Nov 11, 2023
1 parent 1ba713b commit 955c1e4
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions announcing-stressless.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,43 @@ description: "We are thrilled to announce the release of a brand new plugin for

# Announcing Stressless

We are thrilled to announce the release of a brand new plugin for Pest PHP: Stressless. This plugin is designed to change the way we approach stress testing in PHP applications, ensuring that your applications are not just passing tests, but are also robust and reliable under regular or extreme conditions.
We are thrilled to announce the release of a brand new plugin for Pest PHP: ****[Stressless](/docs/stress-testing)**.

It's a fresh new addition to the Pest PHP family, and it brings the power of stress testing to the PHP ecosystem. It integrates seamlessly with Pest PHP, combining the power of stress testing with the simplicity and elegance of Pest's Expectation API.

Check out this YouTube video where we walk you through the installation and setup of the Stressless plugin:

<iframe width="560" height="315" src="https://www.youtube.com/embed/SaMoPZwdOCY?si=KBskkVWLUUSyK0u0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Stress testing is a type of testing that evaluates the stability and reliability of your application under challenging conditions. This could mean handling a high volume of requests or managing large amounts of data. The goal is to ensure that your application not only works in ideal conditions but also maintains its integrity under pressure.
As you can see, it's effortless to get started with Stressless — all you need to do is require the package using Composer, and you're ready to go!

There are two main ways to use Stressless. You may use it to quickly stress test your application from the command line:

```bash
./vendor/bin/pest stress example.com --concurrency=5 --duration=10
````

Or you can use it to write stress tests in your Pest PHP test files:

```php
<?php
test('black friday', function () {
$result = stress('example.com')
->concurrently(5)
->for(10)->seconds();
$requests = $result->requests;
Stressless is born out of this necessity. It integrates seamlessly with Pest PHP, combining the power of stress testing with the simplicity and elegance of Pest's Expectation API.
expect($requests->failed->count)
->toBe(0);
Check our documentation to get started with Stress Testing / Stressless: **[Stress Testing →](/docs/stress-testing)**.
expect($requests->duration->med)
->toBeLessThan(100.0); // 100ms
});
```
We hope you enjoy this new addition to the Pest PHP family!
Check our documentation to get started with Stress Testing / Stressless: **[Stress Testing →](/docs/stress-testing)**. We hope you enjoy this new addition to the Pest PHP family!
---
Expand Down

0 comments on commit 955c1e4

Please sign in to comment.