make custom / self-validation fuzzy markers more elegant
See original GitHub issuetriggered 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:
- Created 4 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.featureor 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@gredler feel free to submit a PR