Comments (3)
It's doable and somthing I've been thinking about myself.
from spock-dbunit.
Hi @cbrani , in version 0.3 you can specify a DbUnit
annotation on each feature. Please see the readme for more information. Please take a look at it and let me know if that's what you had in mind.
from spock-dbunit.
Hi @janbols ,
Great, yes that's what I had in mind
I came up with some further notes nevertheless ;-)
If the schema attribute would be a Closure it would be more flexible. In our test environment we have user specific settings and one of them is the used DB schema. With a closure you could reference the config variable and extract the schema.
Not all of the features in our specification classes need a dbunit setup. The current workaround is that I setup the field annotation with an empty content and annotate the features which definitely need a dbunit setup with an extra @dbunit. I don't know yet if that is a performance penalty but it works. Do you think it would be an idea to have a sort of a skip annotation for a feature? Or another option would be to omit the field annotation and only use the feature annotation in that case (which doesn't work right now. I tried ;-) )
from spock-dbunit.
Related Issues (14)
- How to set IColumnFilter using @DbUnit HOT 3
- @DBUnit with @SingleExecution extension execution order not preserving HOT 1
- Qualified names support (multiple schemas) HOT 5
- org.dbunit.dataset.NoSuchTableException: abc HOT 1
- Want to use schema from Connection HOT 1
- Add @ExpectedDataset functionality
- Column sensing
- Separate Spock.DbUnit content for each case in one Specification HOT 1
- Single table inheritance: not common fields are not filled HOT 2
- DB table ip field does not initialize value HOT 4
- Problem with DB schema HOT 4
- Multiple @DbUnit for specific feature. HOT 1
- Configure a data type factory HOT 5
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 spock-dbunit.