Skip to content

[testharness.js] Formalize test types - #8597

Closed
jugglinmike wants to merge 3 commits into
web-platform-tests:masterfrom
bocoup:testharness-tests-explicit-mode
Closed

jugglinmike wants to merge 3 commits into
web-platform-tests:masterfrom
bocoup:testharness-tests-explicit-mode

Conversation

@jugglinmike

@jugglinmike jugglinmike commented Dec 6, 2017 •

Copy link
Copy Markdown
Contributor

Previously, tests for the testharness.js framework were validated
according to an implicit heuristic based on the presence of a <script>
tag.

Introduce a declarative configuration to make this distinction explicit.
This pattern makes the validation behavior easier to understand. It also
enables future additions which further differentiate the way the two
test types are interpreted.


This change is Reviewable

@ghost

ghost commented Dec 6, 2017 •

Copy link
Copy Markdown

Build PASSED

Started: 2017-12-14 02:53:34
Finished: 2017-12-14 02:57:39

View more information about this build on:

@tobie tobie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from a high-level perspective.

Did not look at the details of the PR.

@jugglinmike

Copy link
Copy Markdown
Contributor Author

I just realized that I wasn't honoring precedent in terms of configuration
validation. I've pushed up an additional "fixup!" commit to correct this--sorry
for the late addition.

Previously, tests for the testharness.js framework were validated
according to an implicit heuristic based on the presence of a `<script>`
tag.

Introduce a declarative configuration to make this distinction explicit.
This pattern makes the validation behavior easier to understand. It also
enables future additions which further differentiate the way the two
test types are interpreted.
@jugglinmike
jugglinmike force-pushed the testharness-tests-explicit-mode branch from f9ecee0 to fb41104 Compare December 8, 2017 16:39
@jugglinmike

Copy link
Copy Markdown
Contributor Author

It looks like gh-8027 introduced some conflicts with this patch. I've rebased the branch to resolve those and made the original branch available here for posterity.

This should be once again ready for review!

Comment thread resources/test/README.md
### Functional tests

In order to test the behavior of the harness itself, some tests must force
Thoroughly testing the behavior of the harness itself requires ensuring a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forgot to remove a line here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right--thanks for catching that!

@jugglinmike

Copy link
Copy Markdown
Contributor Author

@gsnedders Would you mind taking a look at this?

@jugglinmike

Copy link
Copy Markdown
Contributor Author

Superseded by gh-11010.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants