<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>JUnit XML Reporter Spec</title>
    
    <link rel="stylesheet" href="../ext/jasmine.css" type="text/css" />
    
    <script type="text/javascript" src="../ext/jasmine.js"></script>
    <script type="text/javascript" src="../ext/jasmine-html.js"></script>
    <script type="text/javascript" src="../src/jasmine.junit_reporter.js"></script>
</head>
<body>
    <script type="text/javascript">
        describe("Basic Suite", function() {
            it("Should pass a basic truthiness test.", function() {
                expect(true).toEqual(true);
            });
            
            it("Should fail when it hits an inequal statement.", function() {
                expect(1+1).toEqual(3);
            });
        });
        
        describe("Another Suite", function() {
            it("Should pass this test as well.", function() {
                expect(0).toEqual(0);
            });
        });
        
        jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter());
        jasmine.getEnv().execute();
    </script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>JUnit XML Reporter Spec</title>

    <link rel="stylesheet" href="../ext/jasmine.css" type="text/css" />

    <script type="text/javascript" src="../ext/jasmine.js"></script>
    <script type="text/javascript" src="../ext/jasmine-html.js"></script>
    <script type="text/javascript" src="../src/jasmine.junit_reporter.js"></script>

    <!-- Include spec file -->
    <script type="text/javascript" src="JUnitXmlReporterSpec.js"></script>
</head>
<body>
    <script type="text/javascript">
        jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
        jasmine.getEnv().addReporter(new jasmine.JUnitXmlReporter());
        jasmine.getEnv().execute();
    </script>
</body>
</html>

Use the separated test file, rather than the short inline tests.
Use the separated test file, rather than the short inline tests.