Skip to content

Commit

Permalink
todo: advanced htmls test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Mar 15, 2021
1 parent 6e414d1 commit d95a184
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module('Basic sanity check', function (hooks) {
# you can run the test in node with ES modules package.json{ "type": "module" }
$ qunitx some-test.js

# or if you want to run it in browser:
# Suggested mode: if you want to run it in CI/google chrome:

$ qunitx some-test.js --browser

Expand Down
12 changes: 12 additions & 0 deletions test/advanced-htmls-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import test from 'ava';

test('testing with $ qunit test-file.html works', async (t) => {
t.true(true);
});

// html without content
// html without content --browser --debug
// html with content
// html with content --browser --debug
// multiple htmls
// multiple htmls --browser --debug --outputPath
1 change: 0 additions & 1 deletion test/file-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,4 +552,3 @@ test.serial('testing a single failing ts file with --browser --debug works', asy
}
});

// TODO: also make it work with line numbers
17 changes: 17 additions & 0 deletions test/helpers/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{applicationName}} Tests</title>
<link href="./node_modules/qunit/qunit/qunit.css" rel="stylesheet">
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>

{{content}}

<script src="./passing-tests.js"></script>
</body>
</html>`

0 comments on commit d95a184

Please sign in to comment.