question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make custom / self-validation fuzzy markers more elegant

See original GitHub issue

triggered by this stack overflow question: https://stackoverflow.com/a/57167955/143475

today:

* def date = { month: 3 }
* def isThree = function(x){ return x == 3 }
* match date == { month: '#? isThree(_)' }

proposed:

* def date = { month: 3 }
* def isThree = function(x){ return x == 3 }
* match date == { month: '#?isThree' }

we can certainly do this with the JS - I think it’s neat 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrthomascommented, Jul 24, 2019

@hueller yes there is 😃 init them in karate-config.js. you can choose to name-space them like this example: https://github.com/intuit/karate/blob/master/karate-junit4/src/test/java/com/intuit/karate/junit4/config/config-dir.feature

or you can use karate.merge() to add them all to the returned config JSON after calling e.g. utils.feature

personally I don’t encourage doing too much setup in karate-config.js because large projects will need specific things for different suites, and there is a slight performance penalty since it is called for every scenario. but YMMV

0reactions
ptrthomascommented, Jan 14, 2020

@gredler feel free to submit a PR

Read more comments on GitHub >

github_iconTop Results From Across the Web

make custom / self-validation fuzzy markers more elegant
Currently, the only way to reuse Marker functions I'm aware of is to move them into a common utilities feature (as described in...
Read more >
Can I use fuzzy matchers with multiple possible types in Karate?
The API I'm testing may return a string or a number for many fields. I've been able to use a self validation expression...
Read more >
Karate | Test Automation Made Simple.
Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework.
Read more >
An Adaptive Multiobjective Evolutionary Approach To ... - ucf stars
duced into the literature (Fuzzy ARTMAP (1992), Gaussian ARTMAP (1996 and 1997) ... Develop a scheme for self-adaptation in the genetic algorithm to...
Read more >
Available CRAN Packages By Name
abstractr, An R-Shiny Application for Creating Visual Abstracts ... anybadger, Create Custom Pipeline Badges ... attention, Self-Attention Algorithm.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found