I am getting following error
PHPUnit\Framework\Exception: PHP Fatal error: Uncaught Error: Class 'Route' not found in /var/www/html/checkout/routes/api.php:24
I have tried answer from Error: Class 'Route' not found in routes.php when testing standalone Laravel package using Orchestra Testbench. It is not working and giving same error.
Below is my XML code:
<filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./app</directory>
            <directory suffix=".php">./routes</directory>
            <exclude>
                <directory >./routes</directory>
                 <file>./routes/api.php</file>
                 <file>./routes/web.php</file>
            </exclude>
        </whitelist>
    </filter>```
				
                        
Partialy fixed by removing from test case
added stderr="true" like bellow