Skip to content
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

#463 : Generate Surefire report when running unit tests #48

Closed
wants to merge 1 commit into from

Conversation

jpbriend
Copy link

@jpbriend jpbriend commented Dec 7, 2010

This enhancement will generate TEST-xxx.xml files usign Surefire format.
It should help a lot ot integrate Play! applications in IC systems.

Related ticket is http://play.lighthouseapp.com/projects/57987-play-framework/tickets/463-enhancement-generate-surefire-report-for-unit-tests

@guillaumebort
Copy link
Contributor

Can you please change your branch name, #463 is ambiguous for git and I can't retrieve your branch.

@jpbriend
Copy link
Author

jpbriend commented Dec 7, 2010

Use " around the branch name.

Going to try to rename it.

@jpbriend
Copy link
Author

jpbriend commented Dec 7, 2010

@guillaumebort
Copy link
Contributor

Ok wait, I'll try that.

@guillaumebort
Copy link
Contributor

Sorry, it breaks the tests:

Template execution error (In {module:testrunner}/app/views/TestRunner/results-xunit.html around line 3)
Execution error occured in template {module:testrunner}/app/views/TestRunner/results-xunit.html.  Exception raised was MissingPropertyException : No such property: failures for class:     play.test.TestEngine$TestResults.

play.exceptions.TemplateExecutionException: No such property: failures for class:  play.test.TestEngine$TestResults
    at play.templates.BaseTemplate.throwException(BaseTemplate.java:84)
    at play.templates.GroovyTemplate.render(GroovyTemplate.java:226)
    at controllers.TestRunner.run(TestRunner.java:76)
    at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:430)
    at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:425)
    at play.mvc.ActionInvoker.invoke(ActionInvoker.java:153)
    at Invocation.HTTP Request(Play!)
Caused by: groovy.lang.MissingPropertyException: No such property: failures for class: play.test.TestEngine$TestResults
    at {module:testrunner}/app/views/TestRunner/results-xunit.html.(line:3)
    at play.templates.GroovyTemplate.render(GroovyTemplate.java:203)
    ... 5 more

Can you check.

@jpbriend
Copy link
Author

jpbriend commented Dec 7, 2010

Property failures exists in class TestResults :

    public List<TestResult> results = new ArrayList<TestResult>();
    public boolean passed = true;
    public int success = 0;
    public int errors = 0;
    public int failures = 0;
    public long time = 0;

Have you build a new play.jar before running the unit tests ?
This error seems to be like if older version of the class is used.

@guillaumebort
Copy link
Contributor

Ah yes sorry...

@guillaumebort
Copy link
Contributor

Ok merged, it would be great to have the same for selenium reports.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants