Comments (1)
So it turns out it does work, just not at all how you expect it to. The "previous" exception is included in the trace, but this is how it currently looks:
at [redacted]
106▕ // code
107▕ // code
108▕ // code
109▕ // code
➜ 110▕ // code
111▕ // code
112▕ // code
113▕ // code
114▕ }
1 app/SomeFile:67
NunoMaduro\Collision\Exceptions\TestException::("asdasd")
2 app/SomeFile:67
A few things here:
- instead of the actual exception class name, we get
NunoMaduro\Collision\Exceptions\TestException
- throw location is duplicated twice
- only 1 usable trace line is included. If you run tests with
SHELL_VERBOSITY=1
, it does show the complete trace - but in that case it also includes 100 trace lines from vendor which clutters the output. I'd rather see the complete stack trace of userland code than 1 line.
from collision.
Related Issues (20)
- php artisan test doesnt run
- PHPUnit errors are not shown in test output HOT 1
- collision
- Package test command fails if phpunit.xml file does not exist
- PHPUnit autoload not working HOT 2
- Using Collision's printer in Laravel Dusk
- Unable to run 'artisan test' in verbose mode HOT 1
- PhpUnit 10.3 introduced some breaking changes HOT 2
- TestCommand > Passing on ini settings to phpunit/paratest HOT 1
- Is it possible to add the progress % to the PHPUnit printer? HOT 5
- Exception Handler `dontReportDuplicates` Erroring on Fresh Install HOT 1
- Error when trying to load a data collection
- Empty test class doesn't show warning, but breaks CI by passing on non-zero STDERR from PHPUnit HOT 4
- No documented way to use only the PHPUnit (10) printer HOT 9
- Failed to open stream: Too many open files HOT 1
- [7.x] Misleading error message for incompatible PHPUnit version HOT 1
- Undefined constant "NunoMaduro\Collision\STDOUT"
- Running Collision With ParaTest Removes Timing Indicators For Each Test
- php artisan test --profile not printing results (profileSlowTests in DefaultPrinter) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collision.