forevermatt / readable-unit-tests-php Goto Github PK
View Code? Open in Web Editor NEWA Gherkin-based PHP unit-testing framework
A Gherkin-based PHP unit-testing framework
This will probably also require changing how I write output to the console during tests, so that progress can be written out, but an exception still thrown for a failure (without losing the console output).
As of version 0.1.0, all the console output is returned as a string, so the run-tests.php
file's code doesn't actually know whether things passed or failed. It will need to in order to return an appropriate exit code.
Rather than indicating that the tests failed when some files lack tests, simply indicate that and keep going. Otherwise, we'll have a lot of basically-empty test files, which is no better than not having the tests.
Ideas:
Rather than having to re-invent the wheel, figure out how to use existing Behat code to do all the parsing of Gherkin files so that we can use things like Scenario Outline
and Examples
.
Unfortunately, I haven't figured out yet how to use Behat's classes to accomplish this. Can someone give me some pointers in how to get started?
For a Gherkin step that has a string in quotes, the contents of the quotes end up as part of the expected method name, rather than as arguments to the method the way they should.
Use this to write unit tests for itself
See Keep a Changelog
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.