Code Monkey home page Code Monkey logo

Comments (7)

lyrixx avatar lyrixx commented on June 14, 2024

Hello.

It's the same workflow as with PHPUnit (or other test system !)


In a project I'm working on:

  1. we load fixtures
  2. 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:

  1. immutable fixtures, in order (for exemple) to tests permission (401 / 403), and to tests read access
  2. mutable fixtures, in order to test write access

Note: I'm totally against transnational test. It's boring to debug !

from asynit.

B-Galati avatar B-Galati commented on June 14, 2024

Thank you @lyrixx

How can you be sure the tests are really isolated for mutable fixtures?

from asynit.

lyrixx avatar lyrixx commented on June 14, 2024

It's not !

So basically, I use @Depend('test_a'), like that I'm sure they are

from asynit.

B-Galati avatar B-Galati commented on June 14, 2024

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.

lyrixx avatar lyrixx commented on June 14, 2024

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.

lyrixx avatar lyrixx commented on June 14, 2024

Could we close this issue?

from asynit.

B-Galati avatar B-Galati commented on June 14, 2024

Yeap, thanks a lot for your insights 👍

from asynit.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.