diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 2932450..9ece740 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -35,9 +35,6 @@ jobs:
- name: Prepare testbench
run: composer clear && composer prepare && composer build
- - name: Publish required assets
- run: vendor/bin/testbench vendor:publish --provider="Sprout\\SproutServiceProvider"
-
- name: Execute tests
run: composer test
diff --git a/composer.json b/composer.json
index 013db51..2cba323 100644
--- a/composer.json
+++ b/composer.json
@@ -3,14 +3,15 @@
"description" : "A flexible, seamless and easy to use multitenancy solution for Laravel",
"type" : "library",
"require" : {
- "php" : "^8.2",
- "laravel/framework": "^11.32",
+ "php" : "^8.2",
+ "laravel/framework" : "^11.32",
"league/flysystem-path-prefixing": "^3.0"
},
"require-dev" : {
"phpunit/phpunit" : "^11.0.1",
"orchestra/testbench": "^9.4",
- "larastan/larastan" : "^2.9"
+ "larastan/larastan" : "^2.9",
+ "infection/infection": "^0.29.8"
},
"license" : "MIT",
"autoload" : {
@@ -63,13 +64,22 @@
"@clear",
"@prepare",
"@build",
- "@php vendor/bin/phpunit"
+ "@php vendor/bin/phpunit --testsuite=Unit,Feature"
+ ],
+ "mutation" : [
+ "@clear",
+ "@prepare",
+ "@build",
+ "@php vendor/bin/infection --threads=12"
]
},
"extra" : {
"laravel": {
"providers": [
"Sprout\\SproutServiceProvider"
+ ],
+ "facades":[
+ "Sprout\\Facades\\Sprout"
]
}
},
diff --git a/infection.json5 b/infection.json5
new file mode 100644
index 0000000..d7b22fd
--- /dev/null
+++ b/infection.json5
@@ -0,0 +1,16 @@
+{
+ "$schema": "vendor/infection/infection/resources/schema.json",
+ "source": {
+ "directories": [
+ "src"
+ ]
+ },
+ "logs": {
+ "text": "build/infection.log",
+ "html": "build/infection.html"
+ },
+ "mutators": {
+ "@default": true
+ },
+ "testFrameworkOptions": "--testsuite=Unit,Feature"
+}
diff --git a/phpunit.xml b/phpunit.xml
index 36e7c26..7e3a02d 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -15,8 +15,14 @@
testdox="true"
>
-
- tests
+
+ tests/_Original
+
+
+ ./tests/Feature
+
+
+ ./tests/Unit