• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orchestral / canvas-core / 6168643703

13 Sep 2023 06:09AM UTC coverage: 71.818% (-22.4%) from 94.203%
6168643703

push

github

crynobone
Merge branch '8.x'

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

82 of 82 new or added lines in 8 files covered. (100.0%)

237 of 330 relevant lines covered (71.82%)

2.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/TestGenerator.php
1
<?php
2

3
namespace Orchestra\Canvas\Core;
4

5
use Illuminate\Support\Str;
6

7
trait TestGenerator
8
{
9
    /**
10
     * Create the matching test case if requested.
11
     */
12
    protected function handleTestCreationUsingCanvas(string $path): bool
13
    {
14
        if (! $this->option('test') && ! $this->option('pest')) {
×
15
            return false;
×
16
        }
17

18
        return $this->callSilent('make:test', [
×
19
            'name' => Str::of($path)->after($this->preset->sourcePath())->beforeLast('.php')->append('Test')->replace('\\', '/'),
×
20
            '--pest' => $this->option('pest'),
×
21
        ]) == 0;
×
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc