Comments (4)
My proposal includes:
1. Using a filter parameter that will filter the suites and or tests
- The new nested structure introduced with 1.0.beta helps in structuring the tests and is a good start already but filtering brings more flexibility as like selecting different tests or suites in different folders (think tags and folder)
- filters can be regex, basic substring, etc.
- We can use a simple textbox for typing the filter, the filtered tests and or suites will then be returned after applying the filter (async ?)
- It will be really cool for the web ui to somehow reproduce that nested structure so that unticking a suite will also untick all the descendants and vice-versa
2. Offering an optional application parameter (port, db, more ?) to switch on the fly or otherwise fall back to the default config (the properties offered in ml-gradle cover parts of that)
- this is easier with api calls as the dbClient can be changed from one suite to another
- the web ui currently does not offer any capability in this regard (switching the port might be useless though, the context db could be enough)
from marklogic-unit-test.
+1 to this request - at the moment, my test database has indexes mimicking both the staging and final databases in a DHF4 project.
It would be useful to have marklogic-unit-test support the creation of two databases as per the data-hub and the ability to unit test groups against their corresponding database.
from marklogic-unit-test.
The general case for this issue (selecting a subset of tests to run) is being tracked and managed with #77.
I think the DHF specific issues are being tracked and worked as a part of the DHF itself. There are efforts under way to make it easier to perform test setup and run tests against specific sets of DHF databases. At this point in time I don't believe marklogic-unit-test needs to make any specific set of changes to support testing DHF projects, but that DHF will need to set forth patterns and helper methods to make it easier to test DHF project code.
from marklogic-unit-test.
I'm going to close this issue as I believe the solution lies within the DHF project. I also believe there are several open issues that reference testing a DHF project.
from marklogic-unit-test.
Related Issues (20)
- Upgrade Java Client and other dependencies HOT 2
- Use recommended Gradle configurations instead of deprecated ones HOT 1
- test:get-caller breaks when you use a test suite lib that wrappes test-helper HOT 1
- Ability to copy test-data dir in one go, and easily clean up HOT 7
- Helper function to log errors in a readable way HOT 1
- DeployOtherServersCommand.java missing from DataHub 5.x HOT 2
- Document out of date HOT 3
- mjs files aren't recognized as test files
- Bump Java Client to 6.0.0
- Documentation shows incorrect namespace for import
- XDMP-TOOMANYARGS when passing more than two nodes to test:assert-exists() helper function HOT 2
- Update rest endpoint result with codecoverage information and add number of succeeded and failed tests in default output HOT 2
- Enable providing custom code coverage module HOT 2
- timeout on dbg:wait should not be fixed on 10 second HOT 3
- Add nr of failed and succeeded tests per test case
- change 'Tests Run' and 'Passed' to reflect the number of testcases instead of the number of assertions HOT 2
- Improve readability on testreports in cicd pipelines HOT 2
- dead link in docs HOT 2
- Wiki Page is empty HOT 1
- Nested test suites may lead to incorrect setup module selection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marklogic-unit-test.