UNPKG

1.87 kBHTMLView Raw
1<!DOCTYPE html>
2<html>
3 <head>
4 <meta charset="utf-8">
5 <title>Intern</title>
6 <link rel="shortcut icon" type="image/png" href="favicon.png"/>
7
8 <!-- Hey you, listen up:
9 ____ _ __ __ __
10 / __ \____ ____ ( )/ /_ / /_____ __ _______/ /_
11 / / / / __ \/ __ \|// __/ / __/ __ \/ / / / ___/ __ \
12 / /_/ / /_/ / / / / / /_ / /_/ /_/ / /_/ / /__/ / / /
13 /_____/\____/_/ /_/ \__/ \__/\____/\__,_/\___/_/ /_/
14 __ __ _ _____ __ __
15 / /_/ /_ (_)____ / __(_) /__ / / Direct modifications to rmeote.html are unsupported and will cause
16 / __/ __ \/ / ___/ / /_/ / / _ \/ / Intern to break when you upgrade to a new version. If you need to
17 / /_/ / / / (__ ) / __/ / / __/_/ add things to the page, do it from the `setup` or `before` method
18 \__/_/ /_/_/____/ /_/ /_/_/\___(_) of the test suite that needs those things. NEVER do it here!
19 -->
20 </head>
21 <body>
22 <!-- Load intern code in the body because Html reporter needs a DOM -->
23 <script src="browser/intern.js"></script>
24 <script src="browser/config.js"></script>
25 <script>
26 internConfig.getConfig()
27 .then(function (result) {
28 var config = result.config;
29 if (config.showConfigs) {
30 console.log(getConfigDescription(config));
31 return true;
32 }
33
34 if (!result.file) {
35 console.warn('No config file was found');
36 }
37
38 // Add the HTML and console reporters to the default
39 intern.configure({ reporters: ['html', 'console'] });
40 intern.configure(config);
41 })
42 .then(
43 function (skipTests) {
44 if (skipTests) {
45 return;
46 }
47
48 // Intern automatically reports run errors, so discard one if we get it
49 intern.run().catch(function (_error) {});
50 },
51 function (error) {
52 console.error('Error initializing Intern:', error);
53 }
54 );
55 </script>
56 </body>
57</html>