We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1701a30 + c157b66 commit 58b8f3cCopy full SHA for 58b8f3c
src/Configuration.php
@@ -4,6 +4,7 @@
4
5
namespace Pest;
6
7
+use Pest\PendingCalls\BeforeEachCall;
8
use Pest\PendingCalls\UsesCall;
9
10
/**
@@ -62,6 +63,14 @@ public function group(string ...$groups): UsesCall
62
63
return (new UsesCall($this->filename, []))->group(...$groups);
64
}
65
66
+ /**
67
+ * Marks all tests in the current file to be run exclusively.
68
+ */
69
+ public function only(): void
70
+ {
71
+ (new BeforeEachCall(TestSuite::getInstance(), $this->filename))->only();
72
+ }
73
+
74
75
* Depending on where is called, it will extend the given classes and traits globally or locally.
76
*/
0 commit comments