codewars / phpunit-codewars Goto Github PK
View Code? Open in Web Editor NEWCodewars result printer for PHPUnit
License: MIT License
Codewars result printer for PHPUnit
License: MIT License
Sorry if it doesn't go here. There are some katas that have enabled 7.4 where you can't see the debug information, like this one it only shows a collapsed Details link and when you click there it shows something like this: /workspace/default/tests/ExampleTest.php:6
Please, check.
PHP has useful runtime notices that aren't shown by the code runner, making it more difficult to debug PHP code. For example,
<?php
error_reporting(E_ALL);
print $doesntexist;
[][1];
should print:
PHP Notice: Undefined variable: doesntexist in main.php on line 2
PHP Notice: Undefined offset: 1 in main.php on line 3
I know the runner halts and captures when a warning or error is encountered but it doesn't appear to log notices. Is there a good reason not to print these notices on the runner?
PHPUnit provides @testdox
annotation, which allows custom titles for test classes and test methods. However, Codewars reporter emits <DESCRIBE::>
and <IT::>
which do not use custom titles.
The cause can be that the CW reporter uses $test->getName()
, while custom titles seem to be obtained with \PHPUnit\Util\Test::describeAsString($test)
, as can be seen in the default reporter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.