-
Notifications
You must be signed in to change notification settings - Fork 15
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
Auto generation of JUnit test cases as per EasyTest Framework #41
Comments
Idea No: 1: I have below idea but it looks bit crude at the moment, we need to come-up with better sophisticated design for this.
|
Idea No 2: Look for any better open source JUnit test case generations software, and customize it to our needs |
Idea No 3: |
A lot of good ideas. :) Now here is what I think and feel. If we could provide the users of EasyTest a way to generate the empty test cases which does not involve them writing Java test files, it could be a good start. Also if we could combine the efforts of a tester as well as a developer in this situation, then a given project will benefit a lot. For example, A test resource can write the test situations he feels should be tested in his own format(in our case it could be a CSV,XML,Excel file) and EasyTest framework should be able to generate Java test classes for those situations. There are many tools available in the market. As you mentioned Velocity/AndroMDA. One I had on my mind was http://dishevelled.sourceforge.net/ it is a very light weight easy to use library. Also Java 6 has Filer options which can be used to generate Java classes. |
That is really good idea for greenfield projects. Another important point that I want to bring forward is, maintenance projects. In my view there are 80% of maintenance projects running now as compared to green field projects. so our EasyTest should be handle that. The issue I created here is from maintenance project perspective, when they are doing big bang migration, and they have very poor JUnit test coverage(which is true in majority cases). We clearly know input is existing source code and if we provide capability of auto generating the EasyTest test cases and test data, then it would become unique selling point for EasyTest. Please think about it and let me know your views. |
IMO, generating JUnit test cases for existing classes is a very nice option, but is a totally different project altogether. As goes for generating test cases for TDD, I am also not sure. May be XML/UML or any other thing. I havent thought about it in detail but this is something that will be part of the next release of EasyTest. Currently, the main focal point for easytest is to perform Data Driven testing using JUnit as well as using Spring. This is what we need to complete by 15th October and release it as version 0.5.0 in Maven. I am already working on introducing a new Runner for Spring based Testing and it should be available soon. So the other things left is the CSV writer and seeding the DB with the test data. Lets first finish up these things and then lets focus on others. |
Sounds good. we can create the generation as a separate project. |
What happened to this Ravi? I thought you said that you have the code ready? Did I miss interpret? |
It still progressing, I am checking some of friends here, they gave Did you create GitHub project for it. if so, please send those details. On Thu, Oct 18, 2012 at 3:52 PM, Anuj Kumar [email protected]:
|
Yes, it already exists. Here is the project: https://github.com/EaseTech/easytest-codegen |
As discussed during the requirements, we planned to auto generate JUnit test cases and test data.
Share any ideas here.
The text was updated successfully, but these errors were encountered: