Comments (7)
Hello.
It's the same workflow as with PHPUnit (or other test system !)
In a project I'm working on:
- we load fixtures
- we run rests
But we write tests in order to be able to re-run them without having to clean the database. So basically we have 2 types of fixtures:
- immutable fixtures, in order (for exemple) to tests permission (401 / 403), and to tests read access
- mutable fixtures, in order to test write access
Note: I'm totally against transnational test. It's boring to debug !
from asynit.
Thank you @lyrixx
How can you be sure the tests are really isolated for mutable fixtures?
from asynit.
It's not !
So basically, I use @Depend('test_a')
, like that I'm sure they are
from asynit.
Alright thank you!
As working with database/fixtures is something quite common in functional tests. Do you think it would be worth mentioning these details in the README?
Another question unrelated. Does it make sense to use this lib if one does not make real HTTP call? Like using symfony/browser-kit. I don't think so but perhaps I am missing something.
from asynit.
As working with database/fixtures is something quite common in functional tests. Do you think it would be worth mentioning these details in the README?
I don't know. If you want to submit a PR, we will be glad to merge it ;)
Another question unrelated. Does it make sense to use this lib if one does not make real HTTP call? Like using symfony/browser-kit. I don't think so but perhaps I am missing something.
No, IMHO it does not make sens. Instead you should rely on amphp, the lib that powers asynit
from asynit.
Could we close this issue?
from asynit.
Yeap, thanks a lot for your insights 👍
from asynit.
Related Issues (11)
- [RFC] Switch to Amp/Artax Client HOT 2
- Add a way to run only one test file HOT 2
- Fatal error if amp could not connect to target HOT 2
- Add further features for smoke tests HOT 1
- Accept all method as a dependency even if it's not a test
- Package amphp/artax is abandoned, you should avoid using it. Use amphp/http-client instead. HOT 2
- Update / Clean this project HOT 1
- Migrate from travis to github action HOT 1
- Add $response->toArray() to json_decode automatically HOT 1
- TODO HOT 2
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 asynit.