Code Monkey home page Code Monkey logo

Comments (4)

jenisys avatar jenisys commented on June 19, 2024
  • You should not override config.paths = … in your AsfBehaveRunner class.
    REASON: That overrides the command-line args if you use any.
  • In your case, you override the specific FileLocation that you provide on command-line

DESIGN HINT:
The default paths are a functionality of the Configuration, but should not be a functionality of the Runner (in most cases).

OTHERWISE:

  • behave has no command-line option -k
  • Specify your runner class in behave.ini as default runner (since: behave v1.2.7.dev3 at least).
    NOTE: Then you can use behave together with your runner class.

SEE ALSO:

  • behave.ini (config-file with info on default-runner)

from behave.

callejerog avatar callejerog commented on June 19, 2024

In your case, you override the specific FileLocation that you provide on command-line

Thank you!! Now I got it.

I want to define several folders where to load steps, fixtures and features from.
I am setting there paths to set the folders where you should search for features (I know it only at runtime).
How should I do it?

Thanks so much for your help :)

from behave.

callejerog avatar callejerog commented on June 19, 2024

PS for fixtures and steps I am ok, missing only features...

from behave.

callejerog avatar callejerog commented on June 19, 2024

FYI I solved by using this code:

def setup_paths(self): 
    if not self.config.paths:
        self.config.paths = load_features_function()
    super().setup_paths()

so that it works if you run tags (searches in all features dirs), or dry runs, and also works if you specify a path.

Thanks for your hints and your job in general.

Bye

Giulio

from behave.

Related Issues (20)

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.