-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slim support #31
Comments
Is there any progress concerning this matter? |
hi @tombeuckelaere, we've recently done some groundwork to make the port to slim easier, but to be honest, I think it's still a long way away - it's a very large task (because DbFit is very intertwined with Fit) and pretty thankless to boot (lots of edge cases that aren't covered by tests at the moment, because the current implementation isn't really unit-testable). |
Some interesting development from the FitNesse community that could be a useful resource at some point: - https://groups.yahoo.com/neo/groups/fitnesse/conversations/messages/21422 |
Hi, our team just have the same issue. |
@benilovj Can you let me know if there is any progress with using Dbfit with Slim? I notice the six42 project has jdbcslim available (https://github.com/six42/jdbcslim/blob/master/FitNesseRoot/PlugIns/JdbcSlim/Installation/content.txt) - i need to know is this my best option? Also i need to run it with the latest fitnesse jar. My team currently have a full suite of tests running on slim server - i have dbfit running standalone using oracle-dbfit but once i integrate, i can't find a way to run the fit server seamlessly. |
@niamhkelly @thomas-romuald I'm not involved with the DbFit project anymore. @javornikolov or @MMatten any comments from you guys? |
@benilovj thanks for your reply. I contacted six42 and he replied saying his jdbcslim should solve the problem. The syntax is not identical to dbfit so i need to adjust my existing dbfit tests. It will work with the latest fitnesse.jar |
@niamhkelly @thomas-romuald We have still not made much progress towards a SLIM based implementation, mainly because of lack of available time over the last year. We have recently been working on a new (Fit based) release though and we will probably complete this in the next few weeks. This will be compatible with the latest FitNesse version so you could at least have your SLIM and DbFit tests running under the same FitNesse server. I've not used Do you need to tightly integrate your existing SLIM (non database) tests with SLIM based database tests, or simply to be able to host your SLIM tests and DbFit tests on the same FitNesse server/host? When we've completed the next release we could/should consider turning DbFit towards SLIM. @javornikolov any thoughts? |
@MMatten Thanks for your reply. Great to hear more work is planned. We have a common setup at the top level where all global variables setup, in addition a common fixture required for loading zookeeper properties so our suites can be run in multiple environments. With this common setup, dbfit needs to run on the same server. I couldn't find a way to start the fit tests first, then slim within the one setup |
@niamhkelly You can't mix SLIM and Fit (such as DbFit) tests on the same test page. But you should be able to have a single suite with mixed SLIM and Fit test pages as long as the test system is defined appropriately (e.g. in each test page, or in a sub-suite). There's a similar discussion here: http://fitnesse.996250.n3.nabble.com/Suite-with-both-FIT-and-SLIM-td7909.html |
@MMatten |
@MMatten One other issue i found - after experimenting with connection strings for an oracle database, i needed to specify the username and password in the connection string. When the suite is run the connection string is shown with username and password in the fitnesse results. Is there a way of hiding the string as its a security concern? |
You can use the |
I've created a basic test of a single suite with two test pages. One page includes I can run both tests successfully by running the suite as a whole. Is this the same kind of thing as you're doing? |
@MMatten thanks for your help and testing this |
Yes, after the upcoming DbFit release I believe we can look into researching Slim and what would might be done to integrate DbFit with it. |
The background
Currently, as the name would suggest, DbFit only supports the Fit test system for FitNesse. This feature is about adding Slim test system (note that we don't want to drop Fit support any time soon).
The main complexity of this feature will come from having to untangle the Fit-specific table and data type parsing from the test-framework part of the DbFit core.
Another current unknown is how DbFit's flow mode will translate to Slim; flow mode makes sure that the test automatically executes in a transaction, so that the user doesn't have to worry about it.
Definition of Done
This is a substancial piece of work to do cleanly, involving the following:
core
component (currently, there's quite tight coupling in a few places) - this is Java refactoring work.This feature will involve touching most of the core of DbFit. I would like to use this opportunity to pay back a lot of tech debt, specifically:
The proposed technical approach
I would like to apply an acceptance-test-driven approach:
The text was updated successfully, but these errors were encountered: