Giter Site home page Giter Site logo

Comments (7)

dmsimard avatar dmsimard commented on August 28, 2024 1

The problem is that Monkeyble works as a callback plugin. It's not aware of a side executions.

I can relate to the limitations of running within a callback interface, even though what we can do is sometimes surprising :p

@briantist it's probably not what you are looking for but once playbook task results are recorded in ara the data is available to query over its API.

If the data you need is in the results, you could find them and use them that way.
For example:

from monkeyble.

Sispheor avatar Sispheor commented on August 28, 2024

Hi,
Actually this kind of feature is mostly present in unit testing of real language. Because test are really independent.
In the context of monkeyble we it's end to end. So I'm not sure it would be pertinent to give this info as we cross the full playbook to validate a scenario. It means that, even if a task is skipped, you pass through it.

What do you have in mind exactly?

from monkeyble.

briantist avatar briantist commented on August 28, 2024

Sure that's a good point, and I'm not sure I have a lot of specifics in mind. But for example on a given run, skipping a task would probably be the equivalent of a line not being tested. Then ideally the combination of scenarios we test does end up covering all paths.

I suppose conditionals get a bit complex. If a task has a conditional, we want to test it with both true (does execute) and false (skips), so in that case I guess:

  • a skip that's not because of a when: conditional is a miss
  • a skip due to a false conditional is a partial
  • an execution due to a true conditional is a partial
  • the combination of the above two is fully tested

I don't think we'd need to dig into the particulars of complicated conditionals (when with a list for example), for this purpose I think we only care about the final result of it, if that makes sense.

from monkeyble.

Sispheor avatar Sispheor commented on August 28, 2024

And so Monkeyble already answer to that. You can test both scenario with true or false.

from monkeyble.

briantist avatar briantist commented on August 28, 2024

And so Monkeyble already answer to that. You can test both scenario with true or false.

Right exactly, the idea is to generate some standard coverage report that we use in coverage tools like https://codecov.io , that makes it easier to see if we missed some pathways or something and want to test more scenarios

from monkeyble.

Sispheor avatar Sispheor commented on August 28, 2024

The problem is that Monkeyble works as a callback plugin. It's not aware of a side executions.
So we cannot know that we passed in a particular task before and that the result of the condition was true or false.

from monkeyble.

briantist avatar briantist commented on August 28, 2024

The problem is that Monkeyble works as a callback plugin. It's not aware of a side executions. So we cannot know that we passed in a particular task before and that the result of the condition was true or false.

That makes sense, I'm not suggesting that a single report needs to be created that takes into account all of the other scenarios, rather each run would only have to be concerned with what that run covered, multiple scenarios results in multiple reports, and the coverage tool takes all of those into account.

I think that's how it usually works with other tools, though I am a bit out of my depth on the particulars.

from monkeyble.

Related Issues (9)

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.